Small fixes (include and pointer)
[apps/agl-service-can-low-level.git] / low-can-binding / binding / low-can-subscription.cpp
index eb3f6c3..54cd314 100644 (file)
@@ -54,7 +54,8 @@ low_can_subscription_t& low_can_subscription_t::operator=(const low_can_subscrip
 
 low_can_subscription_t::~low_can_subscription_t()
 {
-       socket_->close();
+       if(socket_)
+               socket_->close();
 }
 
 low_can_subscription_t::operator bool() const