]> err.no Git - mapper/commitdiff
Add map_poi_deinit
authorKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 17:57:47 +0000 (19:57 +0200)
committerKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 17:57:47 +0000 (19:57 +0200)
src/map-poi.c
src/map-poi.h

index b6b4cca34fb11d46a1653a921629ea217275881f..b9a18daf273a411d2ea5df97dffd4ccc9ee4613e 100644 (file)
@@ -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)
 {
index 2c10c49c5798fb7dbc937523cfeefba65c2b3c90..f16050c30f25e09cd7791de35de2d85dc8bb585d 100644 (file)
 #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