[grits] Remove object when test plugin unloads
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grits] Remove object when test plugin unloads
- Date: Thu, 16 Feb 2012 23:16:48 +0000 (UTC)
commit 9a426447840e5f497a29d814dee45401dac023e3
Author: Andy Spencer <andy753421 gmail com>
Date: Tue Jan 10 07:21:35 2012 +0000
Remove object when test plugin unloads
src/plugins/test.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/test.c b/src/plugins/test.c
index 81082f4..51be90e 100644
--- a/src/plugins/test.c
+++ b/src/plugins/test.c
@@ -189,6 +189,8 @@ static void grits_plugin_test_dispose(GObject *_test)
GritsPluginTest *test = GRITS_PLUGIN_TEST(_test);
if (test->viewer) {
grits_viewer_remove(test->viewer, GRITS_OBJECT(test->marker));
+ grits_viewer_remove(test->viewer, GRITS_OBJECT(test->poly));
+ grits_viewer_remove(test->viewer, GRITS_OBJECT(test->line));
g_object_unref(test->viewer);
test->viewer = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]