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,6 +55,7 @@ meta_cursor_reference_ref (MetaCursorReference *self)
|
|||||||
static void
|
static void
|
||||||
meta_cursor_image_free (MetaCursorImage *image)
|
meta_cursor_image_free (MetaCursorImage *image)
|
||||||
{
|
{
|
||||||
|
if (image->texture)
|
||||||
cogl_object_unref (image->texture);
|
cogl_object_unref (image->texture);
|
||||||
|
|
||||||
#ifdef HAVE_NATIVE_BACKEND
|
#ifdef HAVE_NATIVE_BACKEND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user