oleview: Fix a memory leak
Andrew Talbot
andrew.talbot at talbotville.com
Wed Oct 17 15:15:53 CDT 2007
Changelog:
oleview: Fix a memory leak.
diff --git a/programs/oleview/pane.c b/programs/oleview/pane.c
index 54ac274..f274be8 100644
--- a/programs/oleview/pane.c
+++ b/programs/oleview/pane.c
@@ -151,7 +151,11 @@ BOOL CreatePanedWindow(HWND hWnd, HWND *
pane = HeapAlloc(GetProcessHeap(), 0, sizeof(PANE));
*hWndCreated = CreateWindow(wszPaneClass, NULL, WS_CHILD|WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hWnd, (HMENU)pane, hInst, NULL);
- if(!hWndCreated) return FALSE;
+ if(!hWndCreated)
+ {
+ HeapFree(GetProcessHeap(), 0, pane);
+ return FALSE;
+ }
pane->left = NULL;
pane->right = NULL;
More information about the wine-patches
mailing list