Diff of /trunk/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 214 by harbaum, Thu Nov 26 10:05:23 2009 UTC revision 221 by harbaum, Mon Nov 30 21:28:04 2009 UTC
# Line 2065  void menu_create(appdata_t *appdata) { Line 2065  void menu_create(appdata_t *appdata) {
2065  /********************* end of menu **********************/  /********************* end of menu **********************/
2066    
2067  void cleanup(appdata_t *appdata) {  void cleanup(appdata_t *appdata) {
2068      gconf_save_state(appdata);
2069    
2070    gpx_free_all(appdata->gpx);    gpx_free_all(appdata->gpx);
   if(appdata->path) free(appdata->path);  
   if(appdata->image_path) free(appdata->image_path);  
   if(appdata->search_str) free(appdata->search_str);  
2071    
2072  #ifdef USE_STACKABLE_WINDOW  #ifdef USE_STACKABLE_WINDOW
2073    if(appdata->export_menu) submenu_cleanup(appdata->export_menu);    if(appdata->export_menu) submenu_cleanup(appdata->export_menu);
# Line 2106  void cleanup(appdata_t *appdata) { Line 2105  void cleanup(appdata_t *appdata) {
2105  static void on_window_destroy (GtkWidget *widget, gpointer data) {  static void on_window_destroy (GtkWidget *widget, gpointer data) {
2106    appdata_t *appdata = (appdata_t*)data;    appdata_t *appdata = (appdata_t*)data;
2107    
   gconf_save_state(appdata);  
2108    gtk_main_quit();    gtk_main_quit();
2109    appdata->window = NULL;    appdata->window = NULL;
2110  }  }

Legend:
Removed from v.214  
changed lines
  Added in v.221