From 7de030bb69e9051be5cc984e467b53d612c6a97c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 12 Jan 2020 18:09:11 +1100 Subject: [PATCH] [c-host] nvfbc: free event on deinit --- VERSION | 2 +- c-host/platform/Windows/capture/NVFBC/src/nvfbc.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 8b2d8e44..928876ca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-81-ge554635e48+1 \ No newline at end of file +B1-83-gb5d91ccc21+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c b/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c index 2d057b51..b88755b9 100644 --- a/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/c-host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -213,6 +213,13 @@ static void nvfbc_stop() static bool nvfbc_deinit() { mouseHook_remove(); + + if (this->cursorEvents[0]) + { + lgFreeEvent(this->cursorEvents[0]); + this->cursorEvents[0] = NULL; + } + return true; }