Merge pull request #509 from PX4/orb_fix

Orb fix
This commit is contained in:
Lorenz Meier 2013-11-03 08:59:57 -08:00
commit bfbdc445fb
1 changed files with 3 additions and 1 deletions

View File

@ -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);