[epiphany] bookmark: Simplify finalize function



commit f4d656a868b391aa383af3526b4a1712c5e58e55
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Nov 21 14:59:46 2016 -0600

    bookmark: Simplify finalize function
    
    It's finalize so we don't need to set anything to NULL

 src/bookmarks/ephy-bookmark.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark.c b/src/bookmarks/ephy-bookmark.c
index ff6b5b4..4e040a6 100644
--- a/src/bookmarks/ephy-bookmark.c
+++ b/src/bookmarks/ephy-bookmark.c
@@ -130,9 +130,9 @@ ephy_bookmark_finalize (GObject *object)
 {
   EphyBookmark *self = EPHY_BOOKMARK (object);
 
-  g_clear_pointer (&self->url, g_free);
-  g_clear_pointer (&self->title, g_free);
-  g_clear_pointer (&self->id, g_free);
+  g_free (self->url);
+  g_free (self->title);
+  g_free (self->id);
 
   g_sequence_free (self->tags);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]