properties: Fixed a typo in a comment.

This commit is contained in:
Ryan C. Gordon
2026-07-13 18:38:30 -04:00
parent ecd15e9535
commit 5b5713b955

View File

@@ -813,7 +813,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)) {