Merge pull request #2171 from NaterGator/master

Fix potential null pointer deref in Mavlink dtor if task_main returns error
This commit is contained in:
Lorenz Meier 2015-05-13 19:17:15 +02:00
commit 14b09d6367
1 changed files with 3 additions and 1 deletions

View File

@ -249,7 +249,9 @@ Mavlink::~Mavlink()
} while (_task_running);
}
LL_DELETE(_mavlink_instances, this);
if (_mavlink_instances) {
LL_DELETE(_mavlink_instances, this);
}
}
void