From: Emmanuel Rodriguez Date: Wed, 22 Apr 2009 20:51:47 +0000 (+0200) Subject: Memory leak fix: priv->tiles is now freed in champlain_zoom_level_dispose() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c34f5dcb1d9bb7875aa79937264250d3fa4239;p=libchamplain Memory leak fix: priv->tiles is now freed in champlain_zoom_level_dispose() --- diff --git a/champlain/champlain-zoom-level.c b/champlain/champlain-zoom-level.c index 3f533a2..b898fa1 100644 --- a/champlain/champlain-zoom-level.c +++ b/champlain/champlain-zoom-level.c @@ -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); }