summaryrefslogtreecommitdiff
path: root/src/gui/panels/panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels/panel.c')
-rw-r--r--src/gui/panels/panel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c
index c21e1b2..164fca7 100644
--- a/src/gui/panels/panel.c
+++ b/src/gui/panels/panel.c
@@ -201,8 +201,7 @@ static void g_panel_item_dockable_interface_init(GtkDockableInterface *iface)
static void g_panel_item_dispose(GPanelItem *item)
{
- if (item->builder != NULL) // REMME
- g_object_unref(G_OBJECT(item->builder));
+ g_clear_object(&item->builder);
G_OBJECT_CLASS(g_panel_item_parent_class)->dispose(G_OBJECT(item));