shell32: Fix possible memory leak in CreateUnixFolder.
This commit is contained in:
parent
5c451900bb
commit
c1682eb8eb
|
@ -2158,13 +2158,15 @@ static const IDropTargetVtbl UnixFolder_IDropTarget_Vtbl = {
|
||||||
static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, const CLSID *pCLSID)
|
static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, const CLSID *pCLSID)
|
||||||
{
|
{
|
||||||
HRESULT hr = E_FAIL;
|
HRESULT hr = E_FAIL;
|
||||||
UnixFolder *pUnixFolder = SHAlloc((ULONG)sizeof(UnixFolder));
|
UnixFolder *pUnixFolder;
|
||||||
|
|
||||||
if (pUnkOuter) {
|
if (pUnkOuter) {
|
||||||
FIXME("Aggregation not yet implemented!\n");
|
FIXME("Aggregation not yet implemented!\n");
|
||||||
return CLASS_E_NOAGGREGATION;
|
return CLASS_E_NOAGGREGATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pUnixFolder = SHAlloc((ULONG)sizeof(UnixFolder));
|
||||||
|
|
||||||
if(pUnixFolder) {
|
if(pUnixFolder) {
|
||||||
pUnixFolder->lpIShellFolder2Vtbl = &UnixFolder_IShellFolder2_Vtbl;
|
pUnixFolder->lpIShellFolder2Vtbl = &UnixFolder_IShellFolder2_Vtbl;
|
||||||
pUnixFolder->lpIPersistFolder3Vtbl = &UnixFolder_IPersistFolder3_Vtbl;
|
pUnixFolder->lpIPersistFolder3Vtbl = &UnixFolder_IPersistFolder3_Vtbl;
|
||||||
|
|
Loading…
Reference in New Issue