mshtml/tests: Fix BSTR double-free (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-04-30 23:07:12 +03:00 committed by Alexandre Julliard
parent 9e186fcf09
commit 5587efe51b
1 changed files with 0 additions and 1 deletions

View File

@ -3118,7 +3118,6 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri,
}else {
src = FindResourceW(NULL, *path == '/' ? path+1 : path, (const WCHAR*)RT_HTML);
ok(src != NULL, "Could not find resource for path %s\n", wine_dbgstr_w(path));
SysFreeString(path);
if(src) {
This->size = SizeofResource(NULL, src);
This->data = LoadResource(NULL, src);