[Xfce4-commits] <xfdesktop:master> Fix a segfault when updating the info of a regular file icon.
Jannis Pohlmann
noreply at xfce.org
Tue Nov 2 01:14:30 CET 2010
Updating branch refs/heads/master
to 0bfc13619caac9484038c4ca69832de28740e620 (commit)
from 5b7d5780e51537d77e5475171011d053ecbab62f (commit)
commit 0bfc13619caac9484038c4ca69832de28740e620
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sun Oct 24 17:40:48 2010 +0200
Fix a segfault when updating the info of a regular file icon.
src/xfdesktop-regular-file-icon.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/xfdesktop-regular-file-icon.c b/src/xfdesktop-regular-file-icon.c
index af3dc7f..d19fa9f 100644
--- a/src/xfdesktop-regular-file-icon.c
+++ b/src/xfdesktop-regular-file-icon.c
@@ -626,6 +626,8 @@ xfdesktop_regular_file_icon_update_file_info(XfdesktopFileIcon *icon,
regular_file_icon->priv->file_info = NULL;
}
+ regular_file_icon->priv->file_info = g_object_ref(info);
+
uri = g_file_get_uri(regular_file_icon->priv->file);
path = thunar_vfs_path_new(uri, NULL);
regular_file_icon->priv->info = thunar_vfs_info_new_for_path(path, NULL);
More information about the Xfce4-commits
mailing list