mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
regedit: Fix leak in GetItemFullPathW.
This commit is contained in:
parent
46ea43e677
commit
b0a8b66789
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue