Changeset 9869 for branches


Ignore:
Timestamp:
Jan 4, 2010, 10:11:43 PM (13 years ago)
Author:
charles
Message:

(1.7x gtk) backport to 1.7x branch: r9563 #2605 "GIcon memory leak in GTK+ client"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/gtk/icons.c

    r9356 r9869  
    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.