[libpeas] Fix a memory leak in the tests caused by resident modules
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix a memory leak in the tests caused by resident modules
- Date: Mon, 17 Jan 2011 13:33:13 +0000 (UTC)
commit 101afa0e6ba7ef949f62866b239615e67f4722c7
Author: Garrett Regier <alias301 gmail com>
Date: Sun Jan 16 12:38:19 2011 -0800
Fix a memory leak in the tests caused by resident modules
tests/libpeas/extension.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas/extension.c b/tests/libpeas/extension.c
index 9b8d66f..978c56d 100644
--- a/tests/libpeas/extension.c
+++ b/tests/libpeas/extension.c
@@ -96,6 +96,8 @@ test_extension_create_invalid (PeasEngine *engine)
PEAS_TYPE_ACTIVATABLE,
"object", NULL,
NULL);
+ /* Resident Modules */
+ g_object_unref (extension);
exit (0);
}
/* Resident modules cause this to fail?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]