devenum: Use free for memory allocated with wcsdup.
The memory is otherwise released to the process heap, although msvcrt allocated it from its internal heap. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
252a53825a
commit
01dd935d1e
|
@ -323,7 +323,7 @@ static ULONG WINAPI moniker_Release(IMoniker *iface)
|
|||
TRACE("(%p) ref=%d\n", This, ref);
|
||||
|
||||
if (ref == 0) {
|
||||
CoTaskMemFree(This->name);
|
||||
free(This->name);
|
||||
free(This);
|
||||
DEVENUM_UnlockModule();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue