Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Small fixes (include and pointer)
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
binding
/
low-can-subscription.cpp
diff --git
a/low-can-binding/binding/low-can-subscription.cpp
b/low-can-binding/binding/low-can-subscription.cpp
index
eb3f6c3
..
54cd314
100644
(file)
--- 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()
{
low_can_subscription_t::~low_can_subscription_t()
{
- socket_->close();
+ if(socket_)
+ socket_->close();
}
low_can_subscription_t::operator bool() const
}
low_can_subscription_t::operator bool() const