diff --git a/lawnmower.cpp b/lawnmower.cpp index 8cc674f..e5e2f5d 100644 --- a/lawnmower.cpp +++ b/lawnmower.cpp @@ -184,4 +184,5 @@ void LAWNMower::replyReceived(QNetworkReply *reply) std::string s(QString(reply->readAll()).toStdString()); mow(Mower::strToStatus(s)); } + delete reply; } diff --git a/lawnmower.h b/lawnmower.h index 226c22d..c612dde 100644 --- a/lawnmower.h +++ b/lawnmower.h @@ -31,7 +31,7 @@ private slots: private: static const int REFRESH = 3000; - static const int ERROR_REFRESH = 10000; + static const int ERROR_REFRESH = 5000; bool _isEnabled; QNetworkAccessManager *_net; QSystemTrayIcon *_tray;