From 0696bc8e86df92426d68c5feedeb17050e87f84f Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Fri, 14 Aug 2009 00:09:46 +0200 Subject: [PATCH] Fix memory leaks in unit tests --- gtk/tests/builder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/tests/builder.c b/gtk/tests/builder.c index 2a653b5d79..2ae604d5e6 100644 --- a/gtk/tests/builder.c +++ b/gtk/tests/builder.c @@ -1951,6 +1951,8 @@ test_icon_factory (void) gtk_icon_factory_add_default (GTK_ICON_FACTORY (factory)); image = gtk_image_new_from_stock ("apple-red", GTK_ICON_SIZE_BUTTON); g_assert (image != NULL); + g_object_ref_sink (image); + g_object_unref (image); g_object_unref (builder); @@ -2136,6 +2138,7 @@ test_requires (void) GTK_BUILDER_ERROR_VERSION_MISMATCH)); g_object_unref (builder); g_error_free (error); + g_free (buffer); } static void