mshtml: Fixed memory leak in nsIURL::GetDirectory implementation.

This commit is contained in:
Jacek Caban 2011-11-10 14:35:59 +01:00 committed by Alexandre Julliard
parent 1190c8cbd6
commit 734050f5c5
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}