1
0
Fork 0

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:
Jasper St. Pierre 2014-12-04 09:45:38 -08:00
parent 5e84c8f20b
commit 593b417e5e

View file

@ -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)