Hi,
is this properly released? or do i need to do more?
Code:
typedef void(Object::*Event)(void*)); //pointer to function
Event *events = new Event[size]; //array of these pointers
//some other code
if(events != NULL)
delete [] events;
or this one?
Code:
LPD3DXMESH* ppMeshTemp = new LPD3DXMESH;
LPD3DXMESH* meshes = new LPD3DXMESH[2];
meshes[0] = *ppMeshTemp;
meshes[1] = *ppMeshTemp;
delete [] meshes;
SAFE_RELEASE( (*ppMeshTemp) );
delete[] ppMeshTemp;
because there's a pretty good chance they're leaking.
thanks!