From: johanengelen Date: Sun, 4 Jan 2009 03:27:35 +0000 (+0000) Subject: a bit more cleanup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=517024acb0d7250a9c32539b399b9eee8b366a8b;p=inkscape.git a bit more cleanup --- diff --git a/src/marker.cpp b/src/marker.cpp index 4aa8c3a9d..d3927fd59 100644 --- a/src/marker.cpp +++ b/src/marker.cpp @@ -120,6 +120,8 @@ sp_marker_init (SPMarker *marker) marker->viewBox_set = FALSE; marker->c2p.setIdentity(); + + marker->views = NULL; } /** @@ -721,8 +723,8 @@ sp_marker_view_remove (SPMarker *marker, SPMarkerView *view, unsigned int destro if (view->items[i]) nr_arena_item_unref (view->items[i]); } } - view->items.clear(); - g_free (view); + view->items.clear(); + delete view; } const gchar *