Added destructor code for native data.