Fixed crash at shutdown with new hashtable code

This commit is contained in:
Sam Lantinga
2025-02-17 07:58:12 -08:00
parent a513168902
commit de12cb92dc

View File

@@ -1397,7 +1397,7 @@ void SDL_QuitCamera(void)
// Physical camera objects are only destroyed when removed from the device hash.
static void SDLCALL DestroyCameraHashItem(void *userdata, const void *key, const void *value)
{
SDL_Camera *device = (SDL_Camera *) userdata;
SDL_Camera *device = (SDL_Camera *) value;
ClosePhysicalCamera(device);
camera_driver.impl.FreeDeviceHandle(device);
SDL_DestroyMutex(device->lock);