From 517024acb0d7250a9c32539b399b9eee8b366a8b Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 4 Jan 2009 03:27:35 +0000 Subject: [PATCH] a bit more cleanup --- src/marker.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 * -- 2.30.2