[glib] module-test: Fix leaks in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] module-test: Fix leaks in test
- Date: Sun, 10 Nov 2013 21:54:21 +0000 (UTC)
commit 6294d730235577b018b1b8df85691a96a5ce4d80
Author: Stef Walter <stefw gnome org>
Date: Sun Nov 10 10:54:47 2013 +0100
module-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711768
tests/module-test.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/module-test.c b/tests/module-test.c
index f54a015..956b0a9 100644
--- a/tests/module-test.c
+++ b/tests/module-test.c
@@ -194,6 +194,9 @@ main (int argc,
if (!g_module_close (module_b))
g_error ("error: %s", g_module_error ());
-
+
+ g_free (plugin_a);
+ g_free (plugin_b);
+ g_module_close (module_self);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]