Commit e8741f08 authored by Haidong Yu's avatar Haidong Yu Committed by Alexandre Julliard

ieframe: Fix memory leak in PersistFile_Save.

parent 6653a381
......@@ -614,6 +614,7 @@ static HRESULT WINAPI PersistFile_Save(IPersistFile *pFile, LPCOLESTR pszFileNam
WriteFile(file, str_ICONFILE, lstrlenA(str_ICONFILE), &bytesWritten, NULL);
WriteFile(file, iconfile, lstrlenA(iconfile), &bytesWritten, NULL);
WriteFile(file, str_eol, lstrlenA(str_eol), &bytesWritten, NULL);
heap_free(iconfile);
}
sprintf(indexString, "ICONINDEX=%d", pvread[1].u.iVal);
......
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