X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fmaemo5locationprivate.cpp;h=8935c8d53c207b6e86526b189b8375857babbd59;hp=d8b3b5dd0cc515ffc1924d64778d5e0dd85a8555;hb=ac84b058f9433e99aee2f560ef4f4e634d6900f7;hpb=2902e3c96a34377d252d222ff60ce11f46556882 diff --git a/Client/maemo5locationprivate.cpp b/Client/maemo5locationprivate.cpp index d8b3b5d..8935c8d 100755 --- a/Client/maemo5locationprivate.cpp +++ b/Client/maemo5locationprivate.cpp @@ -7,6 +7,7 @@ */ #include "maemo5locationprivate.h" +#include /** *Default constructor of this class. @@ -14,13 +15,16 @@ */ Maemo5LocationPrivate::Maemo5LocationPrivate(Maemo5Location* location):QObject(location) { + qDebug() << "__Maemo5LocationPrivate"; //Initialize variables gps_online = false; usegps = -1; resetAll(); //Get gps control object + control = NULL; control = location_gpsd_control_get_default(); //create gps device + device = NULL; device = (LocationGPSDevice*) g_object_new(LOCATION_TYPE_GPS_DEVICE, NULL); g_signal_connect(device, "changed", G_CALLBACK(gps_data_changed), this); @@ -37,8 +41,9 @@ Maemo5LocationPrivate::Maemo5LocationPrivate(Maemo5Location* location):QObject(l */ Maemo5LocationPrivate::~Maemo5LocationPrivate() { - delete device; - delete control; + qDebug() << "__~Maemo5LocationPrivate"; + //delete device; + //delete control; } /**