Destructor properly freeing memory added to Grid