[epiphany] bookmark: Fix leaks in property setters
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] bookmark: Fix leaks in property setters
- Date: Mon, 21 Nov 2016 21:10:16 +0000 (UTC)
commit 1b5cf44b73bcfa69feb8652e493f62090d36938f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Nov 21 15:03:54 2016 -0600
bookmark: Fix leaks in property setters
src/bookmarks/ephy-bookmark.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark.c b/src/bookmarks/ephy-bookmark.c
index 4e040a6..1c667a9 100644
--- a/src/bookmarks/ephy-bookmark.c
+++ b/src/bookmarks/ephy-bookmark.c
@@ -89,10 +89,10 @@ ephy_bookmark_set_property (GObject *object,
ephy_bookmark_set_time_added (self, g_value_get_int64 (value));
break;
case PROP_TITLE:
- self->title = g_value_dup_string (value);
+ ephy_bookmark_set_title (self, g_value_get_string (value));
break;
case PROP_URL:
- self->url = g_value_dup_string (value);
+ ephy_bookmark_set_url (self, g_value_get_string (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]