[Xfce4-commits] <xfdesktop:master> Fix a crash when changing icon types

Eric Koegel noreply at xfce.org
Sun Aug 11 13:40:01 CEST 2013


Updating branch refs/heads/master
         to 144ef9abcb876f5d432eed48e464aaa1c9a1fc05 (commit)
       from 22ec2563c8bc7526f01e7758c001190d44cc8a6f (commit)

commit 144ef9abcb876f5d432eed48e464aaa1c9a1fc05
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Aug 11 14:36:57 2013 +0300

    Fix a crash when changing icon types

 src/xfdesktop-file-icon-manager.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index ae4ffc2..ed4fcde 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1761,6 +1761,9 @@ xfdesktop_file_icon_manager_get_cached_icon_position(XfdesktopFileIconManager *f
     gboolean ret = FALSE;
     gint x = 0, y = 0, width = 0, height = 0;
 
+    if(!fmanager || !fmanager->priv)
+        return FALSE;
+
     xfdesktop_get_workarea_single(fmanager->priv->icon_view,
                                   0,
                                   &x,


More information about the Xfce4-commits mailing list