summaryrefslogtreecommitdiffstats
path: root/lib/efl/ecore_evas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-01 08:49:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-01 08:49:59 +0200
commitbb7b6c52a50e65fb361ede8f26039b5822b9a0cb (patch)
tree632d6d68b93eb85350af21e05ed5575f7c377f9c /lib/efl/ecore_evas.rb
parent51a6645abd257b37f3248ccf26b1007a7ac88208 (diff)
downloadffi-efl-bb7b6c52a50e65fb361ede8f26039b5822b9a0cb.zip
ffi-efl-bb7b6c52a50e65fb361ede8f26039b5822b9a0cb.tar.gz
fix AutoPointer usage, not sure about REinaHash, ...
Diffstat (limited to 'lib/efl/ecore_evas.rb')
-rw-r--r--lib/efl/ecore_evas.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efl/ecore_evas.rb b/lib/efl/ecore_evas.rb
index 6a592dc..6dadd3f 100644
--- a/lib/efl/ecore_evas.rb
+++ b/lib/efl/ecore_evas.rb
@@ -27,7 +27,8 @@ module Efl
)
yield self if block_given?
end
- def free
+ def free p=nil
+ return Efl::EcoreEvas.ecore_evas_free p unless p.nil?
Efl::EcoreEvas.ecore_evas_free @ptr
@ptr=nil
end