forked from Archive/PX4-Autopilot
commit
bfbdc445fb
|
@ -249,8 +249,10 @@ ORBDevNode::close(struct file *filp)
|
||||||
} else {
|
} else {
|
||||||
SubscriberData *sd = filp_to_sd(filp);
|
SubscriberData *sd = filp_to_sd(filp);
|
||||||
|
|
||||||
if (sd != nullptr)
|
if (sd != nullptr) {
|
||||||
|
hrt_cancel(&sd->update_call);
|
||||||
delete sd;
|
delete sd;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return CDev::close(filp);
|
return CDev::close(filp);
|
||||||
|
|
Loading…
Reference in New Issue