[gnome-software/wip/hughsie/flatpak3] trivial: Fix a tiny memory leak when calling gs_plugin_loader_job_action()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/flatpak3] trivial: Fix a tiny memory leak when calling gs_plugin_loader_job_action()
- Date: Mon, 17 Jul 2017 13:19:57 +0000 (UTC)
commit 410c8b8dfbcbcbce3083b3746dc4787472c5bf76
Author: Richard Hughes <richard hughsie com>
Date: Fri Jul 14 21:44:52 2017 +0100
trivial: Fix a tiny memory leak when calling gs_plugin_loader_job_action()
lib/gs-plugin-loader.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 2e94c1d..a2f60f5 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -1471,12 +1471,15 @@ gs_plugin_loader_job_action_finish (GsPluginLoader *plugin_loader,
GAsyncResult *res,
GError **error)
{
+ g_autoptr(GsAppList) list = NULL;
+
g_return_val_if_fail (GS_IS_PLUGIN_LOADER (plugin_loader), FALSE);
g_return_val_if_fail (G_IS_TASK (res), FALSE);
g_return_val_if_fail (g_task_is_valid (res, plugin_loader), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- return g_task_propagate_pointer (G_TASK (res), error) != NULL;
+ list = g_task_propagate_pointer (G_TASK (res), error);
+ return list != NULL;
}
/******************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]