mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
[USER32]
Fix memory leak svn path=/trunk/; revision=53977
This commit is contained in:
parent
523f2c90d7
commit
a1a833ca63
|
@ -885,6 +885,7 @@ MsgiUnicodeToAnsiMessage(HWND hwnd, LPMSG AnsiMsg, LPMSG UnicodeMsg)
|
|||
&UnicodeString,
|
||||
TRUE)))
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, cs);
|
||||
return FALSE;
|
||||
}
|
||||
cs->szClass = AnsiString.Buffer;
|
||||
|
@ -900,6 +901,8 @@ MsgiUnicodeToAnsiMessage(HWND hwnd, LPMSG AnsiMsg, LPMSG UnicodeMsg)
|
|||
RtlInitAnsiString(&AnsiString, cs->szClass);
|
||||
RtlFreeAnsiString(&AnsiString);
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, cs);
|
||||
return FALSE;
|
||||
}
|
||||
cs->szTitle = AnsiString.Buffer;
|
||||
|
|
Loading…
Reference in a new issue