mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
ChangeDisplaySettingsExA: don't leak the memory for the converted DEVMODEW
svn path=/trunk/; revision=41393
This commit is contained in:
parent
e4ae303e4a
commit
fc918eb5ac
|
@ -477,6 +477,9 @@ ChangeDisplaySettingsExA(
|
|||
|
||||
rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam );
|
||||
|
||||
if (pDevModeW != NULL)
|
||||
RtlFreeHeap(GetProcessHeap(), pDevModeW);
|
||||
|
||||
if (lpszDeviceName != NULL)
|
||||
RtlFreeUnicodeString ( &DeviceName );
|
||||
|
||||
|
|
Loading…
Reference in a new issue