mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-20 04:50:48 +02:00
desktop-file test: Don't leak errors
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
c018e0b1b2
commit
24d0be54cc
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue