[glib] unix: Fix memory leak in unix test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] unix: Fix memory leak in unix test
- Date: Sun, 10 Nov 2013 21:50:53 +0000 (UTC)
commit e52558672610fa12c967448dcabb9a8cfd27179e
Author: Stef Walter <stefw gnome org>
Date: Thu Nov 7 22:40:59 2013 +0100
unix: Fix memory leak in unix test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
glib/tests/unix.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/unix.c b/glib/tests/unix.c
index 48dece9..273b4d4 100644
--- a/glib/tests/unix.c
+++ b/glib/tests/unix.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]