[WIN32K:NTUSER] Fix reference leak
authorThomas Faber <thomas.faber@reactos.org>
Mon, 3 Jan 2022 18:23:57 +0000 (13:23 -0500)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 3 Jan 2022 18:25:09 +0000 (13:25 -0500)
win32ss/user/ntuser/ntstubs.c

index ddf9ba0..015f8e3 100644 (file)
@@ -513,7 +513,10 @@ NtUserCreateInputContext(ULONG_PTR dwClientImcData)
 
     pIMC = UserCreateInputContext(dwClientImcData);
     if (pIMC)
+    {
         ret = UserHMGetHandle(pIMC);
+        UserDereferenceObject(pIMC);
+    }
 
 Quit:
     UserLeave();