From MSDN about IShellItemImageFactory::GetImage:
It is the responsibility of the caller to free this retrieved resource through DeleteObject when it is no longer needed.
My question is:
I'm using the IntPtr
in an IShellItemImageFactory.GetImage
call where the IShellItemImageFactory
is decorated with [ComImportAttribute()]
. Do I still need to call DeleteObject
, or will that cause trouble when the CLR(?) will try deleting it as part of the Factory
?