mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[host] nvfbc: cleanup threads created by nvfbc_init on failure
mouseHook_install and dwmForceComposition both create threads, but these are only freed in nvfbc_deinit which is not called if nvfbc_init fails. These should be freed if the pointer thread fails to be created, as nothing else could be cleaning it up.
This commit is contained in:
parent
25e74301be
commit
acc3298344
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,8 @@ static bool nvfbc_init(void)
|
|||
if (!lgCreateThread("NvFBCPointer", pointerThread, NULL, &this->pointerThread))
|
||||
{
|
||||
DEBUG_ERROR("Failed to create the NvFBCPointer thread");
|
||||
mouseHook_remove();
|
||||
dwmUnforceComposition();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue