[perl-Glib-Object-Introspection] Plug a leak in an error branch



commit 165011ac698ed511b4c9686bc70aa01ea49f286e
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date:   Wed Jan 23 21:05:00 2013 +0100

    Plug a leak in an error branch

 GObjectIntrospection.xs |    1 +
 NEWS                    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/GObjectIntrospection.xs b/GObjectIntrospection.xs
index d1794f7..6b311e4 100644
--- a/GObjectIntrospection.xs
+++ b/GObjectIntrospection.xs
@@ -902,6 +902,7 @@ invoke (class, basename, namespace, function, ...)
 	if (!g_typelib_symbol (g_base_info_get_typelib((GIBaseInfo *) info),
 			       symbol, &func_pointer))
 	{
+		g_base_info_unref ((GIBaseInfo *) info);
 		ccroak ("Could not locate symbol %s", symbol);
 	}
 	invoke_c_code (info, func_pointer,
diff --git a/NEWS b/NEWS
index f56bc90..9c83333 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Overview of changes in Glib::Object::Introspection <next>
   double-frees occurring for subclasses of Gtk3::Widget.
 * Rework the way fallback vfuncs are installed.
 * Correctly marshal in-out args when invoking Perl code.
+* Plug a few memory leaks.
 
 Overview of changes in Glib::Object::Introspection 0.013
 ========================================================



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