Added a virtual destructor.
In the destructor, free the memory allocated for elementReader_.partialData.