The current check for an uninitialized SaiHandle during DeInit is a no-op: &config_ will never be null. This change moves the init check out of the Impl class so that the pimpl_ pointer itself can be examined, allowing the check to work as intended. This also fixes a compiler warning about &config_ never being equal to nullptr.
The current check for an uninitialized
SaiHandle
during DeInit is a no-op:&config_
will never be null. This change moves the init check out of theImpl
class so that thepimpl_
pointer itself can be examined, allowing the check to work as intended. This also fixes a compiler warning about&config_
never being equal tonullptr
.