desktop-file test: Don't leak errors

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2018-11-16 17:19:50 +00:00
parent c018e0b1b2
commit 24d0be54cc

View file

@ -214,6 +214,7 @@ test_content (const Test *test,
g_assert_nonnull (error.message);
g_assert_false (ok);
g_assert_null (val);
dbus_error_free (&error);
}
else
{
@ -263,6 +264,7 @@ test_invalid (Fixture *f,
g_assert_nonnull (error.name);
g_assert_nonnull (error.message);
g_assert_null (bdf);
dbus_error_free (&error);
/* Check that it's OK to ignore the error */
bdf = bus_desktop_file_load (&str, NULL);