X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fplugins%2Ftest.c;fp=src%2Fplugins%2Ftest.c;h=8d12dc1172faec9fe1736cc3b919af511077c821;hp=2c3e52f97718e704bc935a74438957086cdb7a80;hb=67a63167629adc48ff31530dd58ece577f3d7460;hpb=8a508b43a6c1498cdfb181cc8580fafa1e07ff89 diff --git a/src/plugins/test.c b/src/plugins/test.c index 2c3e52f..8d12dc1 100644 --- a/src/plugins/test.c +++ b/src/plugins/test.c @@ -177,12 +177,9 @@ static void grits_plugin_test_dispose(GObject *_test) if (test->viewer) { GritsViewer *viewer = test->viewer; test->viewer = NULL; - grits_viewer_remove(viewer, GRITS_OBJECT(test->marker)); - grits_viewer_remove(viewer, GRITS_OBJECT(test->poly)); - grits_viewer_remove(viewer, GRITS_OBJECT(test->line)); - g_object_unref(test->marker); - g_object_unref(test->poly); - g_object_unref(test->line); + grits_object_destroy_pointer(&test->marker); + grits_object_destroy_pointer(&test->poly); + grits_object_destroy_pointer(&test->line); g_object_unref(viewer); } G_OBJECT_CLASS(grits_plugin_test_parent_class)->dispose(_test);