[glib/wip/gcleanup: 39/78] gtype: Remove unneeded ref of static parent type



commit 869c311a9a2580f36065418de76173eccdd2b23d
Author: Stef Walter <stefw gnome org>
Date:   Thu Nov 7 22:55:36 2013 +0100

    gtype: Remove unneeded ref of static parent type
    
    This causes a leak of the parent type.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711778

 gobject/gtype.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index 814cba4..008ed77 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -2746,7 +2746,6 @@ g_type_register_static (GType            parent_type,
   
   pnode = lookup_type_node_I (parent_type);
   G_WRITE_LOCK (&type_rw_lock);
-  type_data_ref_Wm (pnode);
   if (check_type_info_I (pnode, NODE_FUNDAMENTAL_TYPE (pnode), type_name, info))
     {
       node = type_node_new_W (pnode, type_name, NULL);


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