I have the following code and I'm wondering if that delete b is necessary here ?
Will my operating system automatically clear that area of memory allocated ?
class A
{
    B *b;
    A()
    {
        b = new B();
    }
    ~A() 
    {
        delete b;
    }
};
Many thanks.
 
     
     
     
     
     
     
     
     
     
     
    