mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-17 06:21:11 +00:00
properties: Fixed a typo in a comment.
(cherry picked from commit 5b5713b955)
This commit is contained in:
@@ -844,7 +844,7 @@ void SDL_DestroyProperties(SDL_PropertiesID props)
|
||||
{
|
||||
if (props) {
|
||||
// this can't just use RemoveFromHashTable with SDL_FreeProperties as the destructor, because
|
||||
// other destructors under this might cause use to attempt a recursive lock on SDL_properties,
|
||||
// other destructors under this might cause us to attempt a recursive lock on SDL_properties,
|
||||
// which isn't allowed with rwlocks. So manually look it up and remove/free it.
|
||||
SDL_Properties *properties = NULL;
|
||||
if (SDL_FindInHashTable(SDL_properties, (const void *)(uintptr_t)props, (const void **)&properties)) {
|
||||
|
||||
Reference in New Issue
Block a user