oleview: Fix a memory leak.
This commit is contained in:
parent
62894b488d
commit
c8cb3b5fbb
|
@ -151,7 +151,11 @@ BOOL CreatePanedWindow(HWND hWnd, HWND *hWndCreated, HINSTANCE hInst)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue