mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
ChangeDisplaySettingsExA: don't leak the memory for the converted DEVMODEW
svn path=/trunk/; revision=41393
This commit is contained in:
@@ -477,6 +477,9 @@ ChangeDisplaySettingsExA(
|
||||
|
||||
rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam );
|
||||
|
||||
if (pDevModeW != NULL)
|
||||
RtlFreeHeap(GetProcessHeap(), pDevModeW);
|
||||
|
||||
if (lpszDeviceName != NULL)
|
||||
RtlFreeUnicodeString ( &DeviceName );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user