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