I have class A derived from CDialog.

I have create and destroy objects of A many times I see different memory available after

delete a; ( a = new A.....)
and a->DestroyWindow();
Looking like DestroyWindow doesnot free memory.

Is it correct behaviour?
Thanks