[gnome-software/wip/rancell/ubuntu-3-20-rebase: 4/14] Memory leak fix



commit d9e1932604698640f03d5e3bdd6e78f458734f3b
Author: William Hua <william hua canonical com>
Date:   Mon Apr 18 00:46:19 2016 -0400

    Memory leak fix

 src/gs-app.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 6132c51..598a613 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2173,6 +2173,7 @@ gs_app_subsume (GsApp *app, GsApp *other)
        }
        if (other->licence != NULL) {
                /* can't use setter as the incoming text is lost */
+               g_free (app->licence);
                app->licence = g_strdup (other->licence);
                app->licence_is_free = other->licence_is_free;
        }


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