mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:32:56 +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
1 changed files with 3 additions and 0 deletions
|
@ -477,6 +477,9 @@ ChangeDisplaySettingsExA(
|
||||||
|
|
||||||
rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam );
|
rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam );
|
||||||
|
|
||||||
|
if (pDevModeW != NULL)
|
||||||
|
RtlFreeHeap(GetProcessHeap(), pDevModeW);
|
||||||
|
|
||||||
if (lpszDeviceName != NULL)
|
if (lpszDeviceName != NULL)
|
||||||
RtlFreeUnicodeString ( &DeviceName );
|
RtlFreeUnicodeString ( &DeviceName );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue