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:
Peter Barker 2025-02-25 16:08:51 +11:00 committed by Andrew Tridgell
parent 12c4617641
commit 353744e3f0

View File

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