mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 17:36:25 +00:00
RPI_FreeCursor: set global_cursor to NULL to prevent double-free (bug 4769)
This commit is contained in:
@@ -226,6 +226,9 @@ RPI_FreeCursor(SDL_Cursor * cursor)
|
|||||||
SDL_free(cursor->driverdata);
|
SDL_free(cursor->driverdata);
|
||||||
}
|
}
|
||||||
SDL_free(cursor);
|
SDL_free(cursor);
|
||||||
|
if (cursor == global_cursor) {
|
||||||
|
global_cursor = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user