---
name: "SDL_DestroyCursor"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_DestroyCursor"
---

# SDL\_DestroyCursor(3)

Free a previously-created cursor.

## NAME

SDL\_DestroyCursor - Free a previously-created cursor.

## HEADER FILE

Defined in SDL3/SDL\_mouse.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_DestroyCursor(SDL\_Cursor \*cursor);**

## DESCRIPTION

Use this function to free cursor resources created with

**SDL\_CreateCursor** (),

**SDL\_CreateColorCursor** () or

**SDL\_CreateSystemCursor** ().

## FUNCTION PARAMETERS

- *cursor*

  the cursor to free.

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateColorCursor**(3)](/SDL_CreateColorCursor/3.md), **•**(3), [**SDL\_CreateCursor**(3)](/SDL_CreateCursor/3.md), **•**(3), [**SDL\_CreateSystemCursor**(3)](/SDL_CreateSystemCursor/3.md)
