diff --git a/src/core/screen.c b/src/core/screen.c index c14bba0cf..d7623f3fb 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -1394,7 +1394,9 @@ meta_screen_update_cursor (MetaScreen *screen) XDefineCursor (display->xdisplay, screen->xroot, xcursor); XFlush (display->xdisplay); - XFreeCursor (display->xdisplay, xcursor); + + if (xcursor) + XFreeCursor (display->xdisplay, xcursor); } void