unix: Fix memory leak in unix test

https://bugzilla.gnome.org/show_bug.cgi?id=711751
This commit is contained in:
Stef Walter 2013-11-07 22:40:59 +01:00
parent ab3c55435a
commit e525586726

View File

@ -183,6 +183,7 @@ nested_idle (gpointer data)
source = g_unix_signal_source_new (SIGHUP);
g_source_set_callback (source, on_sig_received, nested, NULL);
g_source_attach (source, context);
g_source_unref (source);
kill (getpid (), SIGHUP);
g_main_loop_run (nested);