summaryrefslogtreecommitdiff
path: root/peas-demo/peas-demo-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'peas-demo/peas-demo-window.c')
-rw-r--r--peas-demo/peas-demo-window.c6
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);
}