I have a code that new Bitmap, but when I use delete, the memory usage in Task Manager is not reduced.
My code is as below
Bitmap* pBuffer = new Bitmap(pMainImage->GetWidth(), pMainImage->GetHeight());
delete pBuffer;
How to delete pBuffer above appropriately? So the memory usage return to the level before new Bitmap() is called.