From 889277955c8138f39174f43f32704d2d653abb60 Mon Sep 17 00:00:00 2001 From: Michael Donato Date: Thu, 12 Jul 2012 22:51:37 -0400 Subject: [PATCH] Added unrefs. Not sure if they're needed, but I see them in other tests. --- tests/complement-test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/complement-test.c b/tests/complement-test.c index 24095b8..4b804e6 100644 --- a/tests/complement-test.c +++ b/tests/complement-test.c @@ -41,6 +41,9 @@ void test_complement_constructor (void) g_assert (regex != complement); g_assert_cmpfloat(g_test_timer_elapsed (), <=, 1); + + g_object_unref (complement); + g_object_unref (regex); } /** @@ -70,6 +73,10 @@ void test_complement_get_node (void) g_assert (regex == result); g_assert_cmpfloat(g_test_timer_elapsed (), <=, 1); + + g_object_unref (regex); + g_object_unref (complement); + g_object_unref (result); } int main (int argc, char ** argv)