Commit 5587efe5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 9e186fcf
......@@ -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);
......
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