Diff of /trunk/src/main.c

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

revision 266 by harbaum, Wed Aug 12 09:27:27 2009 UTC revision 271 by harbaum, Thu Aug 27 06:24:55 2009 UTC
# Line 230  cb_menu_download(GtkMenuItem *item, gpoi Line 230  cb_menu_download(GtkMenuItem *item, gpoi
230      /* redraw the entire map by destroying all map items and redrawing them */      /* redraw the entire map by destroying all map items and redrawing them */
231      diff_save(appdata->project, appdata->osm);      diff_save(appdata->project, appdata->osm);
232      map_clear(appdata, MAP_LAYER_OBJECTS_ONLY);      map_clear(appdata, MAP_LAYER_OBJECTS_ONLY);
     osm_free(&appdata->icon, appdata->osm);  
233    
234        osm_free(&appdata->icon, appdata->osm);
235      appdata->osm = NULL;      appdata->osm = NULL;
236    }    }
237    
# Line 338  cb_menu_undo_changes(GtkMenuItem *item, Line 338  cb_menu_undo_changes(GtkMenuItem *item,
338    
339    banner_busy_start(appdata, 1, _("Redrawing"));    banner_busy_start(appdata, 1, _("Redrawing"));
340    map_clear(appdata, MAP_LAYER_OBJECTS_ONLY);    map_clear(appdata, MAP_LAYER_OBJECTS_ONLY);
341    
342    osm_free(&appdata->icon, appdata->osm);    osm_free(&appdata->icon, appdata->osm);
343      appdata->osm = NULL;
344    
345    diff_remove(appdata->project);    diff_remove(appdata->project);
346    appdata->osm = osm_parse(appdata->project->path, appdata->project->osm);    appdata->osm = osm_parse(appdata->project->path, appdata->project->osm);
347    map_paint(appdata);    map_paint(appdata);
# Line 1369  void cleanup(appdata_t *appdata) { Line 1372  void cleanup(appdata_t *appdata) {
1372    map_remove_bg_image(appdata->map);    map_remove_bg_image(appdata->map);
1373    
1374    osm_free(&appdata->icon, appdata->osm);    osm_free(&appdata->icon, appdata->osm);
1375      appdata->osm = NULL;
1376    
1377    curl_global_cleanup();    curl_global_cleanup();
1378    

Legend:
Removed from v.266  
changed lines
  Added in v.271