Only check virtual function of the object being con/destructed