Changeset 8277


Ignore:
Timestamp:
Apr 23, 2009, 3:45:30 PM (13 years ago)
Author:
charles
Message:

(trunk gtk) fix memory leak in the icons code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/icons.c

    r8033 r8277  
    283283{
    284284#ifdef HAVE_GIO
    285     return get_static_string( g_content_type_guess( file, NULL, 0, NULL ));
     285    char * tmp = g_content_type_guess( file, NULL, 0, NULL );
     286    const char * ret = get_static_string( tmp );
     287    g_free( tmp );
     288    return ret;
    286289#else
    287290    return "uncertain";
Note: See TracChangeset for help on using the changeset viewer.