diff --git a/gio/tests/converter-stream.c b/gio/tests/converter-stream.c index 6e7fde1f7..4a21cd182 100644 --- a/gio/tests/converter-stream.c +++ b/gio/tests/converter-stream.c @@ -688,7 +688,10 @@ test_charset (gconstpointer data) g_assert_cmpstr (buffer, ==, test->text_out); } else - g_assert_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA); + { + g_assert_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA); + g_error_free (error); + } g_free (buffer); g_object_unref (in2);