diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-04 18:00:10 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-04 18:00:10 +0100 |
commit | d4bd7225baa8c46e6a93dcd063f66ce53fe88e69 (patch) | |
tree | 726ebff3ff9eba79bc095d8643c937875137e6aa /apps/drivers/gps/gps.cpp | |
parent | 13ec0675703ecc9c7bccb22ef3cd049888dd1abb (diff) | |
download | px4-firmware-d4bd7225baa8c46e6a93dcd063f66ce53fe88e69.tar.gz px4-firmware-d4bd7225baa8c46e6a93dcd063f66ce53fe88e69.tar.bz2 px4-firmware-d4bd7225baa8c46e6a93dcd063f66ce53fe88e69.zip |
More cleanup
Diffstat (limited to 'apps/drivers/gps/gps.cpp')
-rw-r--r-- | apps/drivers/gps/gps.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/drivers/gps/gps.cpp b/apps/drivers/gps/gps.cpp index 6f7310cc5..bd77e8969 100644 --- a/apps/drivers/gps/gps.cpp +++ b/apps/drivers/gps/gps.cpp @@ -341,7 +341,8 @@ GPS::task_main() if (_mode_changed) { if (_Helper != nullptr) { delete(_Helper); - _Helper = nullptr; // XXX is this needed? + /* set to zero to ensure parser is not used while not instantiated */ + _Helper = nullptr; } switch (_mode) { |