[gnome-software] trivial: Fix a tiny leak in the packagekit-local plugin
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix a tiny leak in the packagekit-local plugin
- Date: Tue, 26 Apr 2016 09:38:59 +0000 (UTC)
commit 3d9b817f939407759386d9bf41224d1041ea67a8
Author: Richard Hughes <richard hughsie com>
Date: Tue Apr 26 08:18:01 2016 +0100
trivial: Fix a tiny leak in the packagekit-local plugin
src/plugins/gs-plugin-packagekit-local.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-local.c b/src/plugins/gs-plugin-packagekit-local.c
index 6d0a402..d4638ac 100644
--- a/src/plugins/gs-plugin-packagekit-local.c
+++ b/src/plugins/gs-plugin-packagekit-local.c
@@ -175,7 +175,6 @@ gs_plugin_packagekit_refresh_guess_app_id (GsPlugin *plugin,
g_autofree gchar *basename = g_path_get_basename (fns[j]);
gs_app_set_id (app, basename);
gs_app_set_kind (app, AS_APP_KIND_DESKTOP);
- gs_app_set_kind (app, AS_APP_KIND_DESKTOP);
break;
}
}
@@ -280,7 +279,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
/* look for a desktop file so we can use a valid application id */
if (!gs_plugin_packagekit_refresh_guess_app_id (plugin,
app,
- g_file_get_path (file),
+ filename,
cancellable,
error))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]