The main way is to not call destroy on it.
But maybe override the destructor and set a break point in it? Or do some logging in the destructor.
The main way is to not call destroy on it.
But maybe override the destructor and set a break point in it? Or do some logging in the destructor.