Wayland: Make sure the cursor buffer is valid

Fixes #645.
This commit is contained in:
Emmanuel Gil Peyrot 2015-11-16 21:57:36 +00:00 committed by Camilla Berglund
parent 580c7da559
commit 9ac9c61433

View File

@ -522,6 +522,7 @@ void _glfwPlatformDestroyCursor(_GLFWcursor* cursor)
if (cursor->wl.image) if (cursor->wl.image)
return; return;
if (cursor->wl.buffer)
wl_buffer_destroy(cursor->wl.buffer); wl_buffer_destroy(cursor->wl.buffer);
} }