|
@@ -844,7 +844,7 @@ void SDL_DestroyProperties(SDL_PropertiesID props)
|
|
|
{
|
|
{
|
|
|
if (props) {
|
|
if (props) {
|
|
|
// this can't just use RemoveFromHashTable with SDL_FreeProperties as the destructor, because
|
|
// 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.
|
|
// which isn't allowed with rwlocks. So manually look it up and remove/free it.
|
|
|
SDL_Properties *properties = NULL;
|
|
SDL_Properties *properties = NULL;
|
|
|
if (SDL_FindInHashTable(SDL_properties, (const void *)(uintptr_t)props, (const void **)&properties)) {
|
|
if (SDL_FindInHashTable(SDL_properties, (const void *)(uintptr_t)props, (const void **)&properties)) {
|