Andrew Talbot : msvfw32: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Mon Oct 1 07:54:59 CDT 2007


Module: wine
Branch: master
Commit: 1a36ccc0a8d719480174043449aa226d3450c4cf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1a36ccc0a8d719480174043449aa226d3450c4cf

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Fri Sep 28 21:24:53 2007 +0100

msvfw32: Fix a memory leak.

---

 dlls/msvfw32/mciwnd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msvfw32/mciwnd.c b/dlls/msvfw32/mciwnd.c
index 1e9a4f3..6d252d9 100644
--- a/dlls/msvfw32/mciwnd.c
+++ b/dlls/msvfw32/mciwnd.c
@@ -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)




More information about the wine-cvs mailing list