mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-05 07:09:32 +00:00
Fixed crash at shutdown with new hashtable code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user