summaryrefslogtreecommitdiffstats
path: root/lib/efl/evas.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efl/evas.rb')
-rw-r--r--lib/efl/evas.rb6
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