Commit 38cae0b2 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

shdocvw: Plug memory leak introduced in 1.0-rc1 (Smatch).

parent c83a63d4
......@@ -293,6 +293,7 @@ static BOOL check_native_ie(void)
{
static const WCHAR cszPath[] = {'b','r','o','w','s','e','u','i','.','d','l','l',0};
DWORD handle,size;
BOOL ret = TRUE;
size = GetFileVersionInfoSizeW(cszPath,&handle);
if (size)
......@@ -308,10 +309,12 @@ static BOOL check_native_ie(void)
if (VerQueryValueW(buf, cszFD, (LPVOID*)&lpFileDescription, &dwBytes) &&
strstrW(lpFileDescription,cszWine))
return FALSE;
ret = FALSE;
HeapFree(GetProcessHeap(), 0, buf);
}
return TRUE;
return ret;
}
DWORD register_iexplore(BOOL doregister)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment