diff options
Diffstat (limited to 'core/gpslocation.cpp')
-rw-r--r-- | core/gpslocation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp index d0bbcdc8f..e0b176f58 100644 --- a/core/gpslocation.cpp +++ b/core/gpslocation.cpp @@ -137,9 +137,7 @@ QString GpsLocation::currentPosition() if (delta < 300) { // we can simply use the last position that we tracked gpsTracker gt = m_trackers.last(); - char *gps = printGPSCoords(>.location); - QString gpsString = gps; - free(gps); + QString gpsString = printGPSCoords(>.location); qDebug() << "returning last position" << gpsString; return gpsString; } else { |