[gnome-software/wip/rancell/ubuntu-3-20-rebase: 4/28] Memory leak fix
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-rebase: 4/28] Memory leak fix
- Date: Sat, 17 Jun 2017 04:54:11 +0000 (UTC)
commit 536c4fd16a4e95da057413e9f541382e7c946655
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]