diff --git a/spinnaker_camera_driver/src/SpinnakerCamera.cpp b/spinnaker_camera_driver/src/SpinnakerCamera.cpp index f7521f88..592cdd01 100644 --- a/spinnaker_camera_driver/src/SpinnakerCamera.cpp +++ b/spinnaker_camera_driver/src/SpinnakerCamera.cpp @@ -69,7 +69,7 @@ SpinnakerCamera::SpinnakerCamera() SpinnakerCamera::~SpinnakerCamera() { camList_.Clear(); - system_->ReleaseInstance(); + if (!system_->IsInUse()) system_->ReleaseInstance(); } void SpinnakerCamera::setNewConfiguration(spinnaker_camera_driver::SpinnakerConfig& config, const uint32_t& level)