now freeing all the unmanaged memory pointed to by the intptr members using the destructor