[epiphany] bookmarks-row: Be alive when favicon is loaded



commit b68716799da3fa8c89af31cc681bb3c74b33028e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Nov 1 18:09:23 2016 -0500

    bookmarks-row: Be alive when favicon is loaded

 src/bookmarks/ephy-bookmark-row.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark-row.c b/src/bookmarks/ephy-bookmark-row.c
index 5cc0b42..2fa3886 100644
--- a/src/bookmarks/ephy-bookmark-row.c
+++ b/src/bookmarks/ephy-bookmark-row.c
@@ -99,6 +99,8 @@ ephy_bookmark_row_favicon_loaded_cb (GObject      *source,
     gtk_image_set_from_pixbuf (GTK_IMAGE (self->favicon_image), favicon);
     g_object_unref (favicon);
   }
+
+  g_object_unref (self);
 }
 
 static void
@@ -165,7 +167,7 @@ ephy_bookmark_row_constructed (GObject *object)
                                        ephy_bookmark_get_url (self->bookmark),
                                        NULL,
                                        (GAsyncReadyCallback)ephy_bookmark_row_favicon_loaded_cb,
-                                       self);
+                                       g_object_ref (self));
 }
 
 static void


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