[libpeas] Fix memory leak in Python extension test



commit 967cef10db7ab824589fd5074dd946716691dea0
Author: Garrett Regier <alias301 gmail com>
Date:   Mon Mar 7 22:51:51 2011 -0800

    Fix memory leak in Python extension test

 tests/libpeas/extension-python.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas/extension-python.c b/tests/libpeas/extension-python.c
index ca3d94e..653de25 100644
--- a/tests/libpeas/extension-python.c
+++ b/tests/libpeas/extension-python.c
@@ -99,6 +99,8 @@ test_extension_python_activatable_subject_refcount (PeasEngine *engine)
   /* We unreffed the extension, so it should have been destroyed and our dummy
    * object refcount should be back to 1. */
   g_assert_cmpint (object->ref_count, ==, 1);
+
+  g_object_unref (object);
 }
 
 int



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]