mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05: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:
parent
5e84c8f20b
commit
593b417e5e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user