]> err.no Git - libchamplain/commitdiff
Memory leak fix: priv->tiles is now freed in champlain_zoom_level_dispose()
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Wed, 22 Apr 2009 20:51:47 +0000 (22:51 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 22 Apr 2009 22:14:02 +0000 (18:14 -0400)
champlain/champlain-zoom-level.c

index 3f533a22a07518946d5ec5caf323a591c1449b54..b898fa1ac8417f87c60309a7149dd0609384ac49 100644 (file)
@@ -121,6 +121,7 @@ champlain_zoom_level_dispose (GObject *object)
       ChamplainTile *tile = champlain_zoom_level_get_nth_tile (level, k);
       champlain_zoom_level_remove_tile (level, tile);
     }
+  g_ptr_array_free (priv->tiles, TRUE);
 
   G_OBJECT_CLASS (champlain_zoom_level_parent_class)->dispose (object);
 }