Changeset 6165


Ignore:
Timestamp:
Jun 13, 2008, 12:46:27 AM (14 years ago)
Author:
charles
Message:

(gtk) fix watch directory FMR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r6162 r6165  
    442442    if( isEnabled )
    443443    {
    444         char * dirname = pref_string_get( PREF_KEY_DIR_WATCH );
     444        const char * dirname = pref_string_get( PREF_KEY_DIR_WATCH );
    445445        GDir * dir = g_dir_open( dirname, 0, NULL );
    446446        const char * basename;
     
    450450            g_free( filename );
    451451        }
    452         g_free( dirname );
    453452    }
    454453}
     
    457456updateWatchDir( TrCore * core )
    458457{
    459     char * filename = pref_string_get( PREF_KEY_DIR_WATCH );
     458    const char * filename = pref_string_get( PREF_KEY_DIR_WATCH );
    460459    const gboolean isEnabled = pref_flag_get( PREF_KEY_DIR_WATCH_ENABLED );
    461460    struct TrCorePrivate * p = TR_CORE( core )->priv;
     
    483482    }
    484483
    485     g_free( filename );
    486484}
    487485#endif
Note: See TracChangeset for help on using the changeset viewer.