[totem] icon-helpers: Fix crash when network turns off



commit 9cbf9fe7e3e1e217767515d24f157e58a67aeacb
Author: vrishab <gnome vrb gmail com>
Date:   Sat Dec 3 14:48:03 2016 +0530

    icon-helpers: Fix crash when network turns off
    
    g_file_icon_get_file() does not transfer the ownership of the icon to
    the caller, so don't unref it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773711

 src/icon-helpers.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/icon-helpers.c b/src/icon-helpers.c
index ecf7269..e847281 100644
--- a/src/icon-helpers.c
+++ b/src/icon-helpers.c
@@ -312,7 +312,6 @@ totem_grilo_get_thumbnail (GObject             *object,
 
                        file = g_file_icon_get_file (G_FILE_ICON (icon));
                        url_thumb = g_file_get_uri (file);
-                       g_object_unref (file);
 
                        g_object_set_data (G_OBJECT (task), "is-source", GUINT_TO_POINTER (TRUE));
                }


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