[gnome-software] dummy: trivial: Fix a leak in the self test



commit 05326f591280c77349fc3af0e30f16b28fb3207d
Author: Kalev Lember <klember redhat com>
Date:   Fri Oct 12 15:44:21 2018 +0200

    dummy: trivial: Fix a leak in the self test

 plugins/dummy/gs-self-test.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index ddc3e868..cf76e7ca 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -190,6 +190,7 @@ gs_plugins_dummy_metadata_quirks (GsPluginLoader *plugin_loader)
 
        gs_app_set_metadata (app, "GnomeSoftware::quirks::not-launchable", "true");
 
+       g_object_unref (plugin_job);
        plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_REFINE,
                                         "app", app,
                                         "refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION,
@@ -204,6 +205,7 @@ gs_plugins_dummy_metadata_quirks (GsPluginLoader *plugin_loader)
        gs_app_set_metadata (app, "GnomeSoftware::quirks::not-launchable", NULL);
        gs_app_set_metadata (app, "GnomeSoftware::quirks::not-launchable", "false");
 
+       g_object_unref (plugin_job);
        plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_REFINE,
                                         "app", app,
                                         "refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]