From 25c6bdc22add2f306c24e5200de2899f39f86c48 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 6 Aug 2010 10:29:32 -0400 Subject: [PATCH] error test case: don't double-free the source g_propagate_prefixed_error() frees the source already, don't g_error_free() it. --- glib/tests/error.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glib/tests/error.c b/glib/tests/error.c index ed5211a..f483092 100644 --- a/glib/tests/error.c +++ b/glib/tests/error.c @@ -44,7 +44,6 @@ test_prefix (void) g_propagate_prefixed_error (&dest, src, "foo %d %s: ", 1, "two"); g_assert_cmpstr (dest->message, ==, "foo 1 two: bla"); g_error_free (dest); - g_error_free (src); } static void -- 2.7.4