From 8adc055ca0c2fdb5657d4d85441a6245ec2debf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 29 Nov 2012 00:01:25 +0100 Subject: fix specs, remove double free --- spec/evas_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 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 # -- cgit v1.1-2-g2b99