]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
desktop-file test: Don't leak errors
authorSimon McVittie <smcv@collabora.com>
Fri, 16 Nov 2018 17:19:50 +0000 (17:19 +0000)
committerSimon McVittie <smcv@collabora.com>
Mon, 19 Nov 2018 11:38:11 +0000 (11:38 +0000)
Signed-off-by: Simon McVittie <smcv@collabora.com>
test/internals/desktop-file.c

index 7f96b4d1f9cbe0c167a3abcdd85541048be0c922..a11801f0ee7ac2dad606033a4d00cafef6a7aeb6 100644 (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);