summaryrefslogtreecommitdiff
path: root/src/gui/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/core')
-rw-r--r--src/gui/core/panels.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/core/panels.c b/src/gui/core/panels.c
index 4564f86..71aee86 100644
--- a/src/gui/core/panels.c
+++ b/src/gui/core/panels.c
@@ -181,6 +181,8 @@ bool _browse_all_item_panels(bool skip, handle_panel_item_fc handle, void *data)
if (skip)
welcome = get_panel_item_by_name(PANEL_WELCOME_ID);
+ else
+ welcome = NULL;
panels_list_for_each(iter, _panels_list)
{
@@ -193,8 +195,7 @@ bool _browse_all_item_panels(bool skip, handle_panel_item_fc handle, void *data)
}
- if (skip)
- g_object_unref(G_OBJECT(welcome));
+ g_clear_object(&welcome);
return result;