[gnome-software/wip/attente/ubuntu-xenial: 25/27] Memory leak fix



commit 45250f5becb288707684945a918c244614e32c05
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 dc2baa2..4e194df 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2136,6 +2136,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]