msvfw32: Fix a memory leak.

This commit is contained in:
Andrew Talbot 2007-09-28 21:24:53 +01:00 committed by Alexandre Julliard
parent 355b39cd71
commit 1a36ccc0a8
1 changed files with 2 additions and 0 deletions

View File

@ -1185,6 +1185,8 @@ end_of_mci_open:
if (!mwi->lasterror)
SendDlgItemMessageW(hWnd, CTL_TRACKBAR, TBM_SETRANGEMAX, 1,
SendMessageW(hWnd, MCIWNDM_GETLENGTH, 0, 0));
HeapFree(GetProcessHeap(), 0, cmdW);
}
if (wMsg == MCIWNDM_SETTIMEFORMATA)