mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
cursor: Don't free the image if it hasn't loaded
Otherwise, we'll try to free a null image and crash.
This commit is contained in:
@ -55,7 +55,8 @@ meta_cursor_reference_ref (MetaCursorReference *self)
|
||||
static void
|
||||
meta_cursor_image_free (MetaCursorImage *image)
|
||||
{
|
||||
cogl_object_unref (image->texture);
|
||||
if (image->texture)
|
||||
cogl_object_unref (image->texture);
|
||||
|
||||
#ifdef HAVE_NATIVE_BACKEND
|
||||
if (image->bo)
|
||||
|
Reference in New Issue
Block a user