Author: tkreuzer
Date: Fri Jun 12 20:52:31 2009
New Revision: 41393
URL:
http://svn.reactos.org/svn/reactos?rev=41393&view=rev
Log:
ChangeDisplaySettingsExA: don't leak the memory for the converted DEVMODEW
Modified:
trunk/reactos/dll/win32/user32/misc/display.c
Modified: trunk/reactos/dll/win32/user32/misc/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/disp…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/display.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/misc/display.c [iso-8859-1] Fri Jun 12 20:52:31 2009
@@ -477,6 +477,9 @@
rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam );
+ if (pDevModeW != NULL)
+ RtlFreeHeap(GetProcessHeap(), pDevModeW);
+
if (lpszDeviceName != NULL)
RtlFreeUnicodeString ( &DeviceName );