vbscript: Global_Split free delimiter only if it was allocated.
Signed-off-by: Robert Wilhelm <robert.wilhelm@gmx.net> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6078375a29
commit
723f5f1cc0
|
@ -2458,7 +2458,7 @@ error:
|
|||
heap_free(indices);
|
||||
if(V_VT(args) != VT_BSTR)
|
||||
SysFreeString(string);
|
||||
if(V_VT(args+1) != VT_BSTR)
|
||||
if(args_cnt > 1 && V_VT(args+1) != VT_BSTR)
|
||||
SysFreeString(delimiter);
|
||||
return hres;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue