[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 266/331] Free leaked strings



commit 63ee4483f52dc23f162a59da49553af0a456d29f
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]