In the class that I am in, refactoring the destructor does not manage destroying its array.
    class MyClass{
    public:
        double a;
        double rect[4];
        MyClass();
        ~MyClass();
    };
    MyClass::MyClass() : a(123.0)
    {
        memset(rect, 0, 4 * sizeof(double));
    }
    MyClass::~MyClass() {}
How do I destroy it correctly? Is a simple delete enough or do I also need to set the following afterwards?
delete[] rect;
*rect= NULL;
 
     
     
     
    