mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-02 07:27:19 +08: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.
|
// Physical camera objects are only destroyed when removed from the device hash.
|
||||||
static void SDLCALL DestroyCameraHashItem(void *userdata, const void *key, const void *value)
|
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);
|
ClosePhysicalCamera(device);
|
||||||
camera_driver.impl.FreeDeviceHandle(device);
|
camera_driver.impl.FreeDeviceHandle(device);
|
||||||
SDL_DestroyMutex(device->lock);
|
SDL_DestroyMutex(device->lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user