shcore: Fix path string leak for file streams (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
392bce96c1
commit
0e966cbf5c
|
@ -839,6 +839,7 @@ static ULONG WINAPI filestream_Release(IStream *iface)
|
||||||
if (!refcount)
|
if (!refcount)
|
||||||
{
|
{
|
||||||
CloseHandle(stream->u.file.handle);
|
CloseHandle(stream->u.file.handle);
|
||||||
|
heap_free(stream->u.file.path);
|
||||||
heap_free(stream);
|
heap_free(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue