[gtkmm] Actionable: Ensure all virtual functions don't return freed memory.



commit 927ce3e66030df3b21fe33bfe8062e5ede300689
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Sun Mar 25 17:27:50 2012 -0400

    Actionable: Ensure all virtual functions don't return freed memory.
    
    	* gtk/src/actionable.hg (get_action_target_value_vfunc_callback): The
    	return of the virtual function of this callback should also be
    	appropriately copied so that the callback does not return freed
    	memory.

 ChangeLog             |    9 +++++++++
 gtk/src/actionable.hg |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fc4236a..a69da13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2012-03-25  Josà Alburquerque  <jaalburquerque gmail com>
 
+	Actionable: Ensure all virtual functions don't return freed memory.
+
+	* gtk/src/actionable.hg (get_action_target_value_vfunc_callback): The
+	return of the virtual function of this callback should also be
+	appropriately copied so that the callback does not return freed
+	memory.
+
+2012-03-25  Josà Alburquerque  <jaalburquerque gmail com>
+
 	Actionable: Ensure virtual functions don't return freed memory.
 
 	* gtk/src/actionable.hg (get_action_name_vfunc_callback): Ensure that
diff --git a/gtk/src/actionable.hg b/gtk/src/actionable.hg
index 9f88f04..039f9f6 100644
--- a/gtk/src/actionable.hg
+++ b/gtk/src/actionable.hg
@@ -73,7 +73,7 @@ public:
 
   _WRAP_VFUNC(void set_action_name(const Glib::ustring& action_name), "set_action_name")
 
-#m4 _CONVERSION(`Glib::VariantBase',`GVariant*',`$3.gobj()')
+#m4 _CONVERSION(`Glib::VariantBase',`GVariant*',`$3.gobj_copy()')
   _WRAP_VFUNC(Glib::VariantBase get_action_target_value() const, "get_action_target_value")
 
 #m4 _CONVERSION(`GVariant*',`const Glib::VariantBase&',`Glib::wrap($3,true)')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]