Code

a bit more cleanup
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 4 Jan 2009 03:27:35 +0000 (03:27 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 4 Jan 2009 03:27:35 +0000 (03:27 +0000)
src/marker.cpp

index 4aa8c3a9d3948b0ed316202d55f4a2a2d78ff5b3..d3927fd59e8e4ee069a11175bc6be033603c4c18 100644 (file)
@@ -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 *