From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 17:57:47 +0000 (+0200) Subject: Add map_poi_deinit X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=029eed7564e28cbd184a90453d11e8527f405241;p=mapper Add map_poi_deinit --- diff --git a/src/map-poi.c b/src/map-poi.c index b6b4cca..b9a18da 100644 --- a/src/map-poi.c +++ b/src/map-poi.c @@ -66,6 +66,17 @@ poi_gc=gdk_gc_new(map_widget->window); return TRUE; } +void +map_poi_deinit(void) +{ +map_poi_cache_clear(); +#if 0 +g_object_unref(layout); +g_object_unref(fontdesc); +g_object_unref(poi_gc); +#endif +} + static void map_poi_title(gint x, gint y, GdkGC *gc, gchar *title) { diff --git a/src/map-poi.h b/src/map-poi.h index 2c10c49..f16050c 100644 --- a/src/map-poi.h +++ b/src/map-poi.h @@ -26,10 +26,11 @@ #ifndef _MAPPER_MAP_POI_H #define _MAPPER_MAP_POI_H -void map_render_poi(void); -void map_poi_cache_clear(void); - gboolean map_poi_init(GtkWidget *map_widget); +void map_poi_deinit(void); + +void map_render_poi(void); gboolean map_poi_find_at_latlon(gdouble lat, gdouble lon, guint *poi_id); +void map_poi_cache_clear(void); #endif