From feb837c21fc62720d8094d43cc5ebc1ec3943a6d Mon Sep 17 00:00:00 2001 From: fliep Date: Fri, 11 Sep 2009 21:55:05 +0000 Subject: [PATCH] Unref UI manager when done --- tests/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/main.c b/tests/main.c index d7f09bb..62adca9 100644 --- a/tests/main.c +++ b/tests/main.c @@ -101,7 +101,7 @@ create_window(void) for(ptr = actions; *ptr; ptr += 2) gtk_action_group_add_action_with_accel(actiongroup, GTK_ACTION(load_object(ptr[0])), ptr[1]); - GtkUIManager *uimanager = gtk_ui_manager_new(); + uimanager = gtk_ui_manager_new(); if( !gtk_ui_manager_add_ui_from_file(uimanager, "chimara.menus", &error) ) { error_dialog(NULL, error, "Error while building interface: "); return; @@ -155,6 +155,7 @@ main(int argc, char *argv[]) gtk_widget_show_all(window); g_object_unref( G_OBJECT(builder) ); + g_object_unref( G_OBJECT(uimanager) ); if( !chimara_glk_run(CHIMARA_GLK(glk), "../interpreters/frotz/.libs/frotz.so", argc, argv, &error) ) { error_dialog(GTK_WINDOW(window), error, "Error starting Glk library: "); -- 2.30.2