Searched refs:pMalloc (Results 1 – 6 of 6) sorted by relevance
47 IMalloc *pMalloc; in _SHGetSpecialFolderW32() local48 if( NOERROR == SHGetMalloc(&pMalloc) ) in _SHGetSpecialFolderW32()50 pMalloc->Free( pidl ); in _SHGetSpecialFolderW32()51 pMalloc->Release(); in _SHGetSpecialFolderW32()
739 LPMALLOC pMalloc; in GetSpecialFolder() local807 if (SUCCEEDED(pSHGetMalloc(&pMalloc))) in GetSpecialFolder()809 pMalloc->lpVtbl->Free(pMalloc, pidl); in GetSpecialFolder()810 pMalloc->lpVtbl->Release(pMalloc); in GetSpecialFolder()
617 LPMALLOC pMalloc = NULL; in SHFreeMem() local619 if ( SUCCEEDED(SHGetMalloc(&pMalloc)) ) in SHFreeMem()621 pMalloc->Free( p ); in SHFreeMem()622 pMalloc->Release(); in SHFreeMem()
803 IMalloc *pMalloc; in _SHFree() local804 if( NOERROR == SHGetMalloc(&pMalloc) ) in _SHFree()806 pMalloc->Free( pv ); in _SHFree()807 pMalloc->Release(); in _SHFree()
926 CComPtr<IMalloc> pMalloc; in GetCurFile() local928 HRESULT hr = CoGetMalloc( 1, &pMalloc ); in GetCurFile()929 if ( FAILED( hr ) || !pMalloc ) return E_FAIL; in GetCurFile()931 …*ppszFileName = (LPOLESTR)( pMalloc->Alloc( sizeof( sal_Unicode ) * ( m_aFileName.getLength() + 1 … in GetCurFile()
940 ComSmart< IMalloc > pMalloc; in InitEmbeddedCopyOfLink() local941 CoGetMalloc( 1, &pMalloc ); // if fails there will be a memory leak in InitEmbeddedCopyOfLink()942 OSL_ENSURE( pMalloc, "CoGetMalloc() failed!" ); in InitEmbeddedCopyOfLink()949 if ( pMalloc ) in InitEmbeddedCopyOfLink()950 pMalloc->Free( ( void* )pOleStr ); in InitEmbeddedCopyOfLink()
Completed in 47 milliseconds