[epiphany] ephy-bookmark: Fix memory leak caused by setting the tags property multiple times
- From: Gabriel - Cristian Ivascu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-bookmark: Fix memory leak caused by setting the tags property multiple times
- Date: Tue, 4 Oct 2016 17:11:10 +0000 (UTC)
commit 51bdbc986a66ee627a46b00b6430b46aaeb58601
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Tue Oct 4 20:10:40 2016 +0300
ephy-bookmark: Fix memory leak caused by setting the tags property multiple times
src/bookmarks/ephy-bookmark.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark.c b/src/bookmarks/ephy-bookmark.c
index 559a1c2..8e319c5 100644
--- a/src/bookmarks/ephy-bookmark.c
+++ b/src/bookmarks/ephy-bookmark.c
@@ -59,6 +59,8 @@ ephy_bookmark_set_property (GObject *object,
switch (prop_id) {
case PROP_TAGS:
+ if (self->tags != NULL)
+ g_sequence_free (self->tags);
self->tags = g_value_get_pointer (value);
break;
case PROP_TIME_ADDED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]