[gnome-software/wip/temp/ubuntu-xenial-rebased: 269/329] Free leaked strings
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 269/329] Free leaked strings
- Date: Fri, 29 Apr 2016 14:07:58 +0000 (UTC)
commit 44b0805c7d115f68ad70e6506a38b43e87797050
Author: William Hua <william hua canonical com>
Date: Mon Apr 18 00:34:00 2016 -0400
Free leaked strings
src/plugins/gs-plugin-apt.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index bc3ccaa..a8a414d 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -404,7 +404,7 @@ look_at_pkg (const pkgCache::PkgIterator &P,
/* no upgrade */
if (g_strcmp0 (info->installed_version, info->update_version) == 0)
- info->update_version = NULL;
+ g_clear_pointer (&info->update_version, g_free);
if (info->update_version)
plugin->priv->updatable_packages =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]