Commit 9ac9c614 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot Committed by Camilla Berglund
Browse files

Wayland: Make sure the cursor buffer is valid

Fixes #645.
parent 580c7da5
......@@ -522,7 +522,8 @@ void _glfwPlatformDestroyCursor(_GLFWcursor* cursor)
if (cursor->wl.image)
return;
wl_buffer_destroy(cursor->wl.buffer);
if (cursor->wl.buffer)
wl_buffer_destroy(cursor->wl.buffer);
}
void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment