[glib/wip/gcleanup: 73/79] override: Fix leaks in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 73/79] override: Fix leaks in test
- Date: Sun, 10 Nov 2013 15:25:39 +0000 (UTC)
commit 07082b96c599635121e4b3c010eb83e2ea45cfb6
Author: Stef Walter <stefw gnome org>
Date: Sun Nov 10 15:56:17 2013 +0100
override: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
tests/gobject/override.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/gobject/override.c b/tests/gobject/override.c
index 95b4023..47702d7 100644
--- a/tests/gobject/override.c
+++ b/tests/gobject/override.c
@@ -374,6 +374,8 @@ test (GType type,
if (strcmp (ret, expected_retval) != 0)
failed = TRUE;
+
+ g_free (ret);
}
#ifndef VERBOSE
@@ -392,6 +394,7 @@ test (GType type,
}
g_string_free (test_string, TRUE);
+ g_object_unref (self);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]