Changeset 13179


Ignore:
Timestamp:
Jan 24, 2012, 6:09:12 PM (10 years ago)
Author:
jordan
Message:

(trunk gtk) fix a minor memory leak in gtr_open_file(). reported by clang static analyzer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r12980 r13179  
    314314    if( !trashed ) {
    315315        GError * err = NULL;
    316         trashed = g_file_delete( file, NULL, &err );
     316        g_file_delete( file, NULL, &err );
    317317        if( err ) {
    318318            g_message( "Unable to delete file \"%s\": %s", filename, err->message );
     
    344344gtr_open_file( const char * path )
    345345{
    346     char * uri = NULL;
     346    char * uri;
    347347
    348348    GFile * file = g_file_new_for_path( path );
    349     uri = g_file_get_uri( file );
    350349    g_object_unref( G_OBJECT( file ) );
    351350
Note: See TracChangeset for help on using the changeset viewer.