[discident-glib] tests: Fix memory leaks in EAN test



commit efadaee74ca7a3c17b46545d9beee0b460bdb21d
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 8 21:00:39 2012 +0200

    tests: Fix memory leaks in EAN test

 discident-glib/test-diglib.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/discident-glib/test-diglib.c b/discident-glib/test-diglib.c
index 42cc4d1..7a81332 100644
--- a/discident-glib/test-diglib.c
+++ b/discident-glib/test-diglib.c
@@ -99,6 +99,9 @@ test_ean (void)
 	}
 	g_assert_cmpstr ("The Little Book of Stress: Calm Is for Wimps. Get Real. Get Stressed", ==, title);
 	g_assert (img_url != NULL);
+	g_free (title);
+	g_free (img_url);
+	g_object_unref (ean);
 }
 
 static void



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