[gnome-todo/gnome-3-24] task-list: Fix possible memory leak on list rename
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/gnome-3-24] task-list: Fix possible memory leak on list rename
- Date: Thu, 1 Jun 2017 20:01:36 +0000 (UTC)
commit e3deda472f22b9d7841021e63a1873d1fdf4cab5
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Thu May 25 19:36:50 2017 +0530
task-list: Fix possible memory leak on list rename
https://bugzilla.gnome.org/show_bug.cgi?id=783096
src/gtd-task-list.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gtd-task-list.c b/src/gtd-task-list.c
index afa54a4..1bff3b7 100644
--- a/src/gtd-task-list.c
+++ b/src/gtd-task-list.c
@@ -503,6 +503,7 @@ gtd_task_list_set_name (GtdTaskList *list,
if (g_strcmp0 (priv->name, name) != 0)
{
+ g_free (priv->name);
priv->name = g_strdup (name);
g_object_notify (G_OBJECT (list), "name");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]