mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[host] nvfbc: prevent possible double free
This commit is contained in:
@@ -210,8 +210,18 @@ static bool nvfbc_init(void)
|
|||||||
static void nvfbc_stop(void)
|
static void nvfbc_stop(void)
|
||||||
{
|
{
|
||||||
this->stop = true;
|
this->stop = true;
|
||||||
lgSignalEvent(this->cursorEvents[0]);
|
|
||||||
lgSignalEvent(this->frameEvent);
|
if (this->cursorEvents[0])
|
||||||
|
{
|
||||||
|
lgSignalEvent(this->cursorEvents[0]);
|
||||||
|
this->cursorEvents[0] = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->frameEvent)
|
||||||
|
{
|
||||||
|
lgSignalEvent(this->frameEvent);
|
||||||
|
this->frameEvent = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (this->pointerThread)
|
if (this->pointerThread)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user