diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-11-29 00:01:25 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-11-29 00:01:25 +0100 |
commit | 8adc055ca0c2fdb5657d4d85441a6245ec2debf2 (patch) | |
tree | d4fc5164437ff2d80587e90c827f898228be2546 | |
parent | 8924b4d28f33b3b048c76de3003d97df45ca1cf8 (diff) | |
download | ffi-efl-8adc055ca0c2fdb5657d4d85441a6245ec2debf2.zip ffi-efl-8adc055ca0c2fdb5657d4d85441a6245ec2debf2.tar.gz |
fix specs, remove double free
-rw-r--r-- | spec/evas_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb index e7dbdf9..77ef3c3 100644 --- a/spec/evas_spec.rb +++ b/spec/evas_spec.rb @@ -83,8 +83,7 @@ describe "Efl::Evas #{Efl::Evas.version.full}" do e1.free e1.free e1.to_ptr.should be_nil - e2.free - e2.free + e2.to_ptr.should_not be_nil # it's a reference to a freed object, no good! e4 = Evas::REvas.new Native.evas_new e4.address.should_not == 0 e5 = e4.dup @@ -302,7 +301,6 @@ describe "Efl::Evas #{Efl::Evas.version.full}" do end after(:all) do @e.free - @o.free @pixels.free end # |