]> err.no Git - libchamplain/commitdiff
Clear the points when the polygon is disposed
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Wed, 29 Jul 2009 20:33:47 +0000 (22:33 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Fri, 31 Jul 2009 21:12:09 +0000 (17:12 -0400)
champlain/champlain-polygon.c

index 8567c20db2aea584bd1b395fa098ac2b51b2e6fc..218cd10713081bcb3c654ee374893c319d36cfa6 100644 (file)
@@ -145,6 +145,8 @@ champlain_polygon_dispose (GObject *object)
       priv->actor = NULL;
     }
 
+  champlain_polygon_clear_points (CHAMPLAIN_POLYGON (object));
+
   G_OBJECT_CLASS (champlain_polygon_parent_class)->dispose (object);
 }