[gnome-software/wip/temp/ubuntu-xenial-rebased: 302/329] apt: Don't store the architecture, it's not used (and we forgot to free it)



commit 69e20331fab004f12c9691f2a31b0187b9aaa538
Author: Iain Lane <iain orangesquash org uk>
Date:   Mon Apr 25 16:44:02 2016 +0100

    apt: Don't store the architecture, it's not used (and we forgot to free it)

 src/plugins/gs-plugin-apt.cc |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 919d5d6..d7a46fb 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -67,7 +67,6 @@ typedef struct
 typedef struct {
        gchar           *name;
        gchar           *section;
-       gchar           *architecture;
        gchar           *installed_version;
        gchar           *update_version;
        gchar           *origin;
@@ -394,7 +393,6 @@ look_at_pkg (const pkgCache::PkgIterator &P,
                info->update_version = g_strdup (candidate.VerStr ());
 
        info->section = g_strdup (candidate.Section ());
-       info->architecture = g_strdup (P.Arch ());
        if (info->installed_version) {
                plugin->priv->installed_packages =
                        g_list_append (plugin->priv->installed_packages, info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]