X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=Client%2Fgpsdata.cpp;h=eca9efb693c1ce822dad9e04581a670ec0df27ae;hb=ac84b058f9433e99aee2f560ef4f4e634d6900f7;hp=db0a6bc39a243a4c0c38e65db3383ae9ccbc7716;hpb=e753d97cfeafbe574fbd6f51c4f06dfebd0141e4;p=speedfreak diff --git a/Client/gpsdata.cpp b/Client/gpsdata.cpp index db0a6bc..eca9efb 100644 --- a/Client/gpsdata.cpp +++ b/Client/gpsdata.cpp @@ -7,12 +7,14 @@ */ #include "gpsdata.h" +#include /** *Default constructor of this class. */ GPSData::GPSData(Maemo5Location *maemo5location) { + qDebug() << "__GPSData"; location = maemo5location; connect(location,SIGNAL(agnss()),this,SLOT(agnss())); @@ -33,10 +35,16 @@ GPSData::GPSData(Maemo5Location *maemo5location) */ GPSData::~GPSData() { - delete location; - delete gpsDateTime; + qDebug() << "__~GPSData"; + location = NULL; + + if(gpsDateTime) + delete gpsDateTime; } +/** + * This function reset all variables + */ void GPSData::resetAll() { satellitesInUse = 0;