[gnome-software/wip/attente/ubuntu-xenial] Memory leak fix
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/attente/ubuntu-xenial] Memory leak fix
- Date: Mon, 18 Apr 2016 04:58:35 +0000 (UTC)
commit 451a4c8fe863d1e06d15a738df33bb72400eb188
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]