Skip to content

Commit

Permalink
Fixed a memory leak with QNetworkReply.
Browse files Browse the repository at this point in the history
Now it properly deletes the replies.
  • Loading branch information
Ankit Shankar committed Nov 10, 2009
1 parent 8c2d6a0 commit 2aee509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lawnmower.cpp
Expand Up @@ -184,4 +184,5 @@ void LAWNMower::replyReceived(QNetworkReply *reply)
std::string s(QString(reply->readAll()).toStdString());
mow(Mower::strToStatus(s));
}
delete reply;
}
2 changes: 1 addition & 1 deletion lawnmower.h
Expand Up @@ -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;
Expand Down

0 comments on commit 2aee509

Please sign in to comment.