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~152^2~16 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=2b873488edf5591575f5797b5246c309224a8c60;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; }