Vincent Povirk : shell32: Fix a memory leak in the run dialog code.

Alexandre Julliard julliard at winehq.org
Fri Dec 19 11:19:34 CST 2008


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

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Dec 18 15:52:52 2008 -0600

shell32: Fix a memory leak in the run dialog code.

---

 dlls/shell32/dialogs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c
index 844b8f4..0fdc951 100644
--- a/dlls/shell32/dialogs.c
+++ b/dlls/shell32/dialogs.c
@@ -240,6 +240,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
                             MessageBoxA (hwnd, szMsg, "Nix", MB_OK | MB_ICONEXCLAMATION) ;
 
                             HeapFree(GetProcessHeap(), 0, psz);
+                            HeapFree(GetProcessHeap(), 0, parent);
                             SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
                             return TRUE ;
                             }




More information about the wine-cvs mailing list