summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index 60e4095..6a270fb 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -262,6 +262,7 @@ GtkWidget *create_editor(void)
menuboard = g_editor_item_get_widget(editem);
gtk_box_pack_start(GTK_BOX(vbox1), menuboard, FALSE, FALSE, 0);
+ g_object_unref(G_OBJECT(menuboard));
g_object_set_data(ref, "menubar", editem);
g_object_set_data(ref, "menuboard", menuboard);
@@ -291,6 +292,7 @@ GtkWidget *create_editor(void)
widget = g_editor_item_get_widget(editem);
gtk_box_pack_start(GTK_BOX(vbox1), widget, FALSE, FALSE, 0);
+ g_object_unref(G_OBJECT(widget));
/* Autre */