diff options
Diffstat (limited to 'peas-demo/peas-demo-window.c')
-rw-r--r-- | peas-demo/peas-demo-window.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/peas-demo/peas-demo-window.c b/peas-demo/peas-demo-window.c index 30d72c9..27777d3 100644 --- a/peas-demo/peas-demo-window.c +++ b/peas-demo/peas-demo-window.c @@ -77,11 +77,7 @@ demo_window_dispose (GObject *object) { DemoWindow *dw = DEMO_WINDOW (object); - if (dw->exten_set != NULL) - { - g_object_unref (dw->exten_set); - dw->exten_set = NULL; - } + g_clear_object (&dw->exten_set); G_OBJECT_CLASS (demo_window_parent_class)->dispose (object); } |