Free the allocated command line string.
This commit is contained in:
parent
1979ab3c2b
commit
6672d2680c
|
@ -44,7 +44,7 @@ typedef struct tagHHInfo
|
||||||
{
|
{
|
||||||
HH_WINTYPEW *pHHWinType;
|
HH_WINTYPEW *pHHWinType;
|
||||||
HINSTANCE hInstance;
|
HINSTANCE hInstance;
|
||||||
LPCWSTR szCmdLine;
|
LPWSTR szCmdLine;
|
||||||
DWORD dwNumTBButtons;
|
DWORD dwNumTBButtons;
|
||||||
HWND hwndTabCtrl;
|
HWND hwndTabCtrl;
|
||||||
HFONT hFont;
|
HFONT hFont;
|
||||||
|
@ -473,7 +473,7 @@ static BOOL HH_CreateViewer(HHInfo *pHHInfo)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HHInfo *HH_OpenHH(HINSTANCE hInstance, LPCWSTR szCmdLine)
|
static HHInfo *HH_OpenHH(HINSTANCE hInstance, LPWSTR szCmdLine)
|
||||||
{
|
{
|
||||||
HHInfo *pHHInfo = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(HHInfo));
|
HHInfo *pHHInfo = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(HHInfo));
|
||||||
|
|
||||||
|
@ -490,6 +490,7 @@ static void HH_Close(HHInfo *pHHInfo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, pHHInfo->pHHWinType);
|
HeapFree(GetProcessHeap(), 0, pHHInfo->pHHWinType);
|
||||||
|
HeapFree(GetProcessHeap(), 0, pHHInfo->szCmdLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: Check szCmdLine for bad arguments */
|
/* FIXME: Check szCmdLine for bad arguments */
|
||||||
|
|
Loading…
Reference in New Issue