Leak of memory with PxMaterial

When i loop like this:

for (;;)
{
	physx::PxMaterial *pMaterial = app.pPhysic_physicsSDK->createMaterial(0.5f, 0.5f, 0.5f);
	pMaterial->release();
}

memory are not releasing. Memory go off. How to release it right?

Hi,

That is certainly an odd bug. Have you checked that your allocator is being called after you call release()? It might be that the allocator is being called but something is going wrong in the allocator that stops the memory beng freed.

Thanks,

Gordon