diff --git a/src/core/screen.c b/src/core/screen.c index 048104150..85a55b1e3 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -1397,7 +1397,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