delete off-heap stuff - needs a rethink