summaryrefslogtreecommitdiff
path: root/src/gui/panels/panel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-11-27 23:08:36 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-11-27 23:08:36 (GMT)
commit425f8ce0e40592287431bd1d3d71e03f5bdcbdd5 (patch)
treea8a555a4708dbb35dc3892648c30358fbf8e010f /src/gui/panels/panel.c
parentce4b859adf12e1be6e13ea33b5afb1ce773ff1b3 (diff)
Used Glade to build all GUI panels.
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));