From 029eed7564e28cbd184a90453d11e8527f405241 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 19:57:47 +0200 Subject: [PATCH] Add map_poi_deinit --- src/map-poi.c | 11 +++++++++++ src/map-poi.h | 7 ++++--- 2 files changed, 15 insertions(+), 3 deletions(-) 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 -- 2.39.5