[gnome-software/wip/rancell/ubuntu-3-20-1: 15/72] Memory leak fix



commit 7f0a224999158d59127ec123e5b8476c35328cdc
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]