mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-07 09:53:39 +02:00
error test case: don't double-free the source
g_propagate_prefixed_error() frees the source already, don't g_error_free() it.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user