Changeset 5753


Ignore:
Timestamp:
May 6, 2008, 11:04:16 AM (14 years ago)
Author:
charles
Message:

(gtk) #914: lockpath string should be freed conditionally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/conf.c

    r5517 r5753  
    104104cf_removelocks( void )
    105105{
    106     g_unlink( gl_lockpath );
    107     g_free( gl_lockpath );
     106    if( gl_lockpath ) {
     107      g_unlink( gl_lockpath );
     108      g_free( gl_lockpath );
     109    }
    108110}
    109111
Note: See TracChangeset for help on using the changeset viewer.