summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index d9da5e562..1e2b6e132 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1604,10 +1604,7 @@ QString QMLManager::getGpsFromSiteName(const QString& siteName)
ds = get_dive_site_by_name(qPrintable(siteName));
if (!ds)
return QString();
- char *gps = printGPSCoords(&ds->location);
- QString res = gps;
- free(gps);
- return res;
+ return printGPSCoords(&ds->location);
}
void QMLManager::setNotificationText(QString text)