[glib/wip/gcleanup] gsubprocess: Fix leaks in tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup] gsubprocess: Fix leaks in tests
- Date: Sun, 10 Nov 2013 21:37:38 +0000 (UTC)
commit 8df806b5ddccc0e583d6af10a5102db171ebef05
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 08:54:28 2013 +0100
gsubprocess: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
gio/tests/gsubprocess.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gsubprocess.c b/gio/tests/gsubprocess.c
index e4dfb3d..f38bbdc 100644
--- a/gio/tests/gsubprocess.c
+++ b/gio/tests/gsubprocess.c
@@ -617,6 +617,7 @@ test_communicate (void)
g_assert_no_error (data.error);
+ g_bytes_unref (input);
g_object_unref (proc);
}
@@ -789,6 +790,7 @@ test_stdout_file (void)
g_free (tmp_contents);
(void) g_file_delete (tmpfile, NULL, NULL);
+ g_object_unref (tmpfile);
g_free (tmp_file_path);
}
@@ -840,6 +842,7 @@ test_stdout_fd (void)
g_free (tmp_contents);
(void) g_file_delete (tmpfile, NULL, NULL);
+ g_object_unref (tmpfile);
}
static void
@@ -897,6 +900,7 @@ test_child_setup (void)
g_free (tmp_contents);
(void) g_file_delete (tmpfile, NULL, NULL);
+ g_object_unref (tmpfile);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]