[Xfce4-commits] <thunar:master> Don't decrease refcount of files returned by GFileIcon (bug #7309).

Jannis Pohlmann noreply at xfce.org
Sat Feb 19 18:30:01 CET 2011


Updating branch refs/heads/master
         to d5739ef148b02a5212dea2c0d7dcb7de4c79dd46 (commit)
       from f3def301388057f8080d675c8446907d7c62f3bc (commit)

commit d5739ef148b02a5212dea2c0d7dcb7de4c79dd46
Author: Ambroz Bizjak <ambrop7 at gmail.com>
Date:   Sat Feb 19 18:26:20 2011 +0100

    Don't decrease refcount of files returned by GFileIcon (bug #7309).
    
    This fixes a crash when hovering CD drives with a special icon in
    computer://.
    
    Signed-off-by: Jannis Pohlmann <jannis at xfce.org>

 NEWS                 |    2 ++
 thunar/thunar-file.c |    1 -
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index 686006f..293c417 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@
 - Fix properties dialog crash with files with unknown content type.
 - Fix crash when opening a mountable drive with no media (bug #7308).
   Reported and solved by Ambroz Bizjak.
+- Fix crash when hovering a CD drive with a special icon (bug #7309).
+  Reported and solved by Ambroz Bizjak.
 
 1.3.0
 =====
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 25b16a3..506713c 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -2921,7 +2921,6 @@ thunar_file_get_icon_name (const ThunarFile   *file,
         {
           icon_file = g_file_icon_get_file (G_FILE_ICON (icon));
           icon_name = g_file_get_path (icon_file);
-          g_object_unref (icon_file);
         }
     }
   



More information about the Xfce4-commits mailing list