Changeset 9563


Ignore:
Timestamp:
Nov 25, 2009, 4:42:42 AM (12 years ago)
Author:
charles
Message:

(trunk gtk) #2605: GIcon memory leak in GTK+ client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/icons.c

    r9550 r9563  
    212212    if (pixbuf != NULL) {
    213213        g_object_ref( pixbuf );
     214        g_object_unref( G_OBJECT( icon ) );
    214215        return pixbuf;
    215216    }
     
    218219    if( pixbuf != NULL )
    219220        g_hash_table_insert( icon_cache->cache, (gpointer) key, g_object_ref( pixbuf ) );
     221
     222    g_object_unref( G_OBJECT( icon ) );
    220223       
    221224    return pixbuf;
Note: See TracChangeset for help on using the changeset viewer.