[gnome-software] trivial: Fix tiny memory leak spotted by clang
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix tiny memory leak spotted by clang
- Date: Wed, 22 Jan 2014 10:07:21 +0000 (UTC)
commit 5ba4333c4c2ce9dfc689fafde6ed5658d9d5f964
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 22 10:06:54 2014 +0000
trivial: Fix tiny memory leak spotted by clang
src/gs-dbus-helper.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-dbus-helper.c b/src/gs-dbus-helper.c
index e59661a..0812c89 100644
--- a/src/gs-dbus-helper.c
+++ b/src/gs-dbus-helper.c
@@ -237,10 +237,10 @@ gs_dbus_helper_handle_method_call_query (GsDbusHelper *dbus_helper,
if (g_strcmp0 (method_name, "IsInstalled") == 0) {
g_variant_get (parameters, "(&s&s)",
&name, &interaction);
- names = g_strsplit (name, "|", 1);
dtask = g_new0 (GsDbusHelperTask, 1);
dtask->invocation = invocation;
gs_dbus_helper_task_set_interaction (dtask, interaction);
+ names = g_strsplit (name, "|", 1);
pk_client_resolve_async (PK_CLIENT (dbus_helper->task),
pk_bitfield_value (PK_FILTER_ENUM_INSTALLED),
names, NULL,
@@ -250,7 +250,6 @@ gs_dbus_helper_handle_method_call_query (GsDbusHelper *dbus_helper,
} else if (g_strcmp0 (method_name, "SearchFile") == 0) {
g_variant_get (parameters, "(&s&s)",
&name, &interaction);
- names = g_strsplit (name, "|", 1);
dtask = g_new0 (GsDbusHelperTask, 1);
dtask->invocation = invocation;
gs_dbus_helper_task_set_interaction (dtask, interaction);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]