Fix to the previous commit

Destroying storage data would not work without virtual destructor in base class.