mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
mshtml: Fixed memory leak in nsIURL::GetDirectory implementation.
This commit is contained in:
parent
1190c8cbd6
commit
734050f5c5
@ -2427,6 +2427,7 @@ static nsresult NSAPI nsURL_GetDirectory(nsIURL *iface, nsACString *aDirectory)
|
||||
SysFreeString(path);
|
||||
TRACE("ret %s\n", debugstr_a(dir));
|
||||
nsACString_SetData(aDirectory, dir ? dir : "");
|
||||
heap_free(dir);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user