mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 10:30:03 +01: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:
parent
a1b015f7b7
commit
25c6bdc22a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user