IFSUPCUTILSize* size = NULL;
CoCreateInstance(CLSID_UTILSize, NULL, CLSCTX_INPROC_SERVER, IID_IFSUPCUTILSize, reinterpret_cast<void**>(&size));
if (size != NULL){
size->Release();
size = NULL;
}
delete size;
Do I need "delete size" in the code above?
If I include "delete size", will I have a memory leak because I did not use New?
Or is there a New inside the call to CoCreateInstance
.
I built this with VC++ 6.