[epiphany] bookmarks-manager: simplify finalize



commit 79d52375239b4d8b95890beeeb85c7d7bd6de943
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Nov 21 15:17:21 2016 -0600

    bookmarks-manager: simplify finalize
    
    Again, these functions are intended for dispose, where we really need to
    reset the values to NULL, not finalize.

 src/bookmarks/ephy-bookmarks-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmarks-manager.c b/src/bookmarks/ephy-bookmarks-manager.c
index 9785a82..bda3f4a 100644
--- a/src/bookmarks/ephy-bookmarks-manager.c
+++ b/src/bookmarks/ephy-bookmarks-manager.c
@@ -133,8 +133,8 @@ ephy_bookmarks_manager_finalize (GObject *object)
 {
   EphyBookmarksManager *self = EPHY_BOOKMARKS_MANAGER (object);
 
-  g_clear_pointer (&self->bookmarks, g_sequence_free);
-  g_clear_pointer (&self->tags, g_sequence_free);
+  g_sequence_free (self->bookmarks);
+  g_sequence_free (self->tags);
 
   g_free (self->gvdb_filename);
 


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