[WIN32K:NTUSER] Fix one more reference leak

Addendum to d5deacd9 and 2a2f8dbe. CORE-11700
This commit is contained in:
Stanislav Motylkov 2022-01-04 03:12:12 +03:00
parent a4b2c80853
commit 27955da7ee
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -654,7 +654,11 @@ InitThreadCallback(PETHREAD Thread)
/* Create the default input context */
if (IS_IMM_MODE())
{
UserCreateInputContext(0);
PIMC pIMC = UserCreateInputContext(0);
if (pIMC)
{
UserDereferenceObject(pIMC);
}
}
/* Last things to do only if we are not a SYSTEM or CSRSS thread */