Skip to content

Commit 8857b97

Browse files
committed
destory mutex when closing lg4ff hidapihaptic
1 parent 4aa08fc commit 8857b97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/haptic/hidapi/SDL_hidapihaptic_lg4ff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@ static void SDL_HIDAPI_HapticDriverLg4ff_Close(SDL_HIDAPI_HapticDevice *device)
958958

959959
ctx->stop_thread = true;
960960
SDL_WaitThread(ctx->thread, NULL);
961+
SDL_DestroyMutex(ctx->mutex);
961962
}
962963

963964
static int SDL_HIDAPI_HapticDriverLg4ff_NumEffects(SDL_HIDAPI_HapticDevice *device)

0 commit comments

Comments
 (0)