diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-01 08:49:59 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-01 08:49:59 +0200 |
commit | bb7b6c52a50e65fb361ede8f26039b5822b9a0cb (patch) | |
tree | 632d6d68b93eb85350af21e05ed5575f7c377f9c /lib/efl/evas.rb | |
parent | 51a6645abd257b37f3248ccf26b1007a7ac88208 (diff) | |
download | ffi-efl-bb7b6c52a50e65fb361ede8f26039b5822b9a0cb.zip ffi-efl-bb7b6c52a50e65fb361ede8f26039b5822b9a0cb.tar.gz |
fix AutoPointer usage, not sure about REinaHash, ...
Diffstat (limited to 'lib/efl/evas.rb')
-rw-r--r-- | lib/efl/evas.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index d6f476b..56657d3 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -63,7 +63,8 @@ module Efl ) yield self if block_given? end - def free + def free p=nil + return Efl::Evas.evas_free p unless p.nil? Efl::Evas.evas_free @ptr @ptr=nil end @@ -120,7 +121,8 @@ module Efl ) yield self if block_given? end - def free + def free p=nil + return Efl::Evas.evas_object_del p unless p.nil? Efl::Evas.evas_object_del @ptr @ptr=nil end |