https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a2f8dbebd3d8a4f2358d…
commit 2a2f8dbebd3d8a4f2358d1110d01f392bebd2ad0
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Mon Jan 3 13:23:57 2022 -0500
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Jan 3 13:25:09 2022 -0500
[WIN32K:NTUSER] Fix reference leak
---
win32ss/user/ntuser/ntstubs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/win32ss/user/ntuser/ntstubs.c b/win32ss/user/ntuser/ntstubs.c
index ddf9ba09381..015f8e30650 100644
--- a/win32ss/user/ntuser/ntstubs.c
+++ b/win32ss/user/ntuser/ntstubs.c
@@ -513,7 +513,10 @@ NtUserCreateInputContext(ULONG_PTR dwClientImcData)
pIMC = UserCreateInputContext(dwClientImcData);
if (pIMC)
+ {
ret = UserHMGetHandle(pIMC);
+ UserDereferenceObject(pIMC);
+ }
Quit:
UserLeave();