mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 12:21:46 +00:00
regedit: Fix leak in GetItemFullPathW.
This commit is contained in:
parent
46ea43e677
commit
b0a8b66789
@ -215,6 +215,7 @@ LPWSTR GetItemFullPathW(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
|
||||
parts[1] = GetItemPathW(hwndTV, hItem, &hRootKey);
|
||||
ret = CombinePathsW((LPCWSTR *)parts, 2);
|
||||
HeapFree(GetProcessHeap(), 0, parts[0]);
|
||||
HeapFree(GetProcessHeap(), 0, parts[1]);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user