Fixed destructor so it doesn't dealloc something we don't own.