diff options
author | Simon McVittie <smcv@collabora.com> | 2018-11-16 17:19:50 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-11-19 11:38:11 +0000 |
commit | 24d0be54cc3f2e3e8ddf0d7ef8e6cdf334290ee4 (patch) | |
tree | f858b741f8338a1c8c8bf6625eeaad482bb0e176 /test/internals | |
parent | c018e0b1b28107cac6d243295b7afa8939fdbdcd (diff) | |
download | dbus-24d0be54cc3f2e3e8ddf0d7ef8e6cdf334290ee4.tar.gz |
desktop-file test: Don't leak errors
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/internals')
-rw-r--r-- | test/internals/desktop-file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/internals/desktop-file.c b/test/internals/desktop-file.c index 7f96b4d1..a11801f0 100644 --- a/test/internals/desktop-file.c +++ b/test/internals/desktop-file.c @@ -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); |