mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
AP_GPS: UBLOX: fix memory leak when "F9" GNSS configuration is used
pointer persists in the object and is re-used, but never freed. Not really a problem if you're only detecting once, could be a problem if you've got intermittent connectivity to your GPS...
This commit is contained in:
parent
12c4617641
commit
353744e3f0
@ -129,6 +129,8 @@ AP_GPS_UBLOX::~AP_GPS_UBLOX()
|
|||||||
#if GPS_MOVING_BASELINE
|
#if GPS_MOVING_BASELINE
|
||||||
delete rtcm3_parser;
|
delete rtcm3_parser;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
delete config_GNSS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if GPS_MOVING_BASELINE
|
#if GPS_MOVING_BASELINE
|
||||||
|
Loading…
Reference in New Issue
Block a user