summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/logs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/logs.c b/src/core/logs.c
index ae69758..417039b 100644
--- a/src/core/logs.c
+++ b/src/core/logs.c
@@ -106,7 +106,10 @@ void log_simple_message(LogMessageType type, const char *msg)
item = get_panel_item_by_name(PANEL_LOG_ID);
if (item != NULL)
+ {
g_log_panel_add_message(G_LOG_PANEL(item), type, msg);
+ g_object_unref(G_OBJECT(item));
+ }
else
print_message_without_gui(type, msg);