gjs r108 - trunk/gi



Author: tko
Date: Wed Nov 19 17:18:53 2008
New Revision: 108
URL: http://svn.gnome.org/viewvc/gjs?rev=108&view=rev

Log:
Bug 561514 â memory leak when skipping deprecated methods

	* gi/boxed.c (boxed_new_resolve):
	* gi/object.c (object_instance_new_resolve):
	* gi/union.c (union_new_resolve): Fix leak when skipping
	deprecated methods

Modified:
   trunk/gi/boxed.c
   trunk/gi/object.c
   trunk/gi/union.c

Modified: trunk/gi/boxed.c
==============================================================================
--- trunk/gi/boxed.c	(original)
+++ trunk/gi/boxed.c	Wed Nov 19 17:18:53 2008
@@ -107,6 +107,7 @@
                           method_name,
                           g_base_info_get_namespace( (GIBaseInfo*) priv->info),
                           g_base_info_get_name( (GIBaseInfo*) priv->info));
+                g_base_info_unref( (GIBaseInfo*) method_info);
                 return JS_FALSE;
             }
 

Modified: trunk/gi/object.c
==============================================================================
--- trunk/gi/object.c	(original)
+++ trunk/gi/object.c	Wed Nov 19 17:18:53 2008
@@ -355,6 +355,7 @@
                           g_type_name(priv->gtype),
                           g_base_info_get_namespace( (GIBaseInfo*) priv->info),
                           g_base_info_get_name( (GIBaseInfo*) priv->info));
+                g_base_info_unref( (GIBaseInfo*) method_info);
                 return JS_FALSE;
             }
 

Modified: trunk/gi/union.c
==============================================================================
--- trunk/gi/union.c	(original)
+++ trunk/gi/union.c	Wed Nov 19 17:18:53 2008
@@ -107,6 +107,7 @@
                           method_name,
                           g_base_info_get_namespace( (GIBaseInfo*) priv->info),
                           g_base_info_get_name( (GIBaseInfo*) priv->info));
+                g_base_info_unref( (GIBaseInfo*) method_info);
                 return JS_FALSE;
             }
 



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