diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-06-25 16:24:39 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-06-26 18:06:54 +0200 |
commit | c88f115014d9e75e4d1cc0db9762f11ca8532afb (patch) | |
tree | 610b5914239d66ce0fe47186be3cc5a0cec03df8 /low-can-binding/binding/low-can-subscription.cpp | |
parent | fdc6702732f6575f39e6cdad6db579a305dd8fe3 (diff) |
Small fixes (include and pointer)
Bug-AGL: SPEC-2386
Change-Id: I3a622b9d236283aff479f187451cd86557a9aba7
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/binding/low-can-subscription.cpp')
-rw-r--r-- | low-can-binding/binding/low-can-subscription.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/low-can-binding/binding/low-can-subscription.cpp b/low-can-binding/binding/low-can-subscription.cpp index eb3f6c37..54cd314c 100644 --- a/low-can-binding/binding/low-can-subscription.cpp +++ b/low-can-binding/binding/low-can-subscription.cpp @@ -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 |