summaryrefslogtreecommitdiffstats
path: root/lib/efl/ecore_evas.rb
diff options
context:
space:
mode:
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