regedit: Fix leak in GetItemFullPathW.

This commit is contained in:
Alexander Nicolaysen Sørnes 2008-08-26 20:02:59 +02:00 committed by Alexandre Julliard
parent 46ea43e677
commit b0a8b66789

View file

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