summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmbroz Bizjak <ambrop7@gmail.com>2011-02-19 18:26:20 +0100
committerJannis Pohlmann <jannis@xfce.org>2011-02-19 18:26:20 +0100
commitd5739ef148b02a5212dea2c0d7dcb7de4c79dd46 (patch)
tree4d8720dd11e6b7606a0502750dfdac25b64ba524
parentf3def301388057f8080d675c8446907d7c62f3bc (diff)
downloadthunar-d5739ef148b02a5212dea2c0d7dcb7de4c79dd46.tar.gz
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@xfce.org>
-rw-r--r--NEWS2
-rw-r--r--thunar/thunar-file.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 686006f0..293c4176 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 25b16a3d..506713c6 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);
}
}