[Xfce4-commits] [xfce/xfwm4] 03/03: compositor: XFixesGetCursorImage() may return NULL

noreply at xfce.org noreply at xfce.org
Mon Apr 27 21:54:48 CEST 2015


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit e0a978d8a673a3045377ecad7d2d12eaaf2427db
Author: Emanuel Czirai <emanueLczirai at cryptoLab.net>
Date:   Mon Apr 27 21:46:24 2015 +0200

    compositor: XFixesGetCursorImage() may return NULL
    
    Bug: 11830
    
    Reported-by: Emanuel Czirai <emanueLczirai at cryptoLab.net>
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index 3e74571..066fb1b 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2947,6 +2947,11 @@ update_cursor(ScreenInfo *screen_info)
     TRACE ("entering update_cursor");
 
     cursor = XFixesGetCursorImage (screen_info->display_info->dpy);
+    if (cursor == NULL)
+    {
+        g_warning ("Failed to retrieve cursor image!");
+        return;
+    }
 
     if (screen_info->cursorSerial != cursor->cursor_serial)
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list