ChangeDisplaySettingsExA: don't leak the memory for the converted DEVMODEW

svn path=/trunk/; revision=41393
This commit is contained in:
Timo Kreuzer
2009-06-12 16:52:31 +00:00
parent e4ae303e4a
commit fc918eb5ac
+3
View File
@@ -477,6 +477,9 @@ ChangeDisplaySettingsExA(
rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam );
if (pDevModeW != NULL)
RtlFreeHeap(GetProcessHeap(), pDevModeW);
if (lpszDeviceName != NULL)
RtlFreeUnicodeString ( &DeviceName );