From: Philip Chimento Date: Wed, 5 Jan 2011 21:49:10 +0000 (-0500) Subject: Fix ref bug in plugin loader test X-Git-Tag: v0.9~159^2~2 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=f3bf7fac9da93b3e2ad1f28f036e48b38d6f32c4;p=projects%2Fchimara%2Fchimara.git Fix ref bug in plugin loader test The Chimara widget should have a reference added to it. --- diff --git a/tests/plugin-loader.c b/tests/plugin-loader.c index cb71892..766305d 100644 --- a/tests/plugin-loader.c +++ b/tests/plugin-loader.c @@ -60,6 +60,7 @@ create_window(void) gtk_widget_set_size_request(window, 400, 400); g_signal_connect(window, "delete-event", G_CALLBACK(quit), NULL); glk = chimara_glk_new(); + g_object_ref(glk); g_signal_connect(glk, "stopped", G_CALLBACK(gtk_main_quit), NULL); gtk_container_add(GTK_CONTAINER(window), glk); } @@ -95,6 +96,7 @@ main(int argc, char *argv[]) chimara_glk_stop(CHIMARA_GLK(glk)); chimara_glk_wait(CHIMARA_GLK(glk)); + g_object_unref(glk); return 0; }