Free a previously-created cursor.
void SDL_DestroyCursor(SDL_Cursor * cursor);
cursor | the cursor to free |
Use this function to free cursor resources created with SDL_CreateCursor(), SDL_CreateColorCursor() or SDL_CreateSystemCursor().
This function is available since SDL 3.0.0.