Memory leaks

Issue #20 resolved
Jean-Luc Gyger created an issue

Hi, I think that in QJsonRpcHttpReply::networkReplyFinished and in QJsonRpcHttpReply::networkReplyError you have a memory leaks.

Indeed, It seems to me that "reply" is never delete. You should add reply->deleteLater(); before Q_EMIT finished();

Comments (5)

  1. Jean-Luc Gyger reporter

    Not sure that solved the problem. Indeed, this is ok when using the notify function because you don't wait a response. But when using sendMessage, the reply shoud be delete on networkReplyFinished or networkReplyError .

  2. Matt Broadstone

    oh my bad, yeah looks like there is one in sendMessage. A normal QJsonRpcSocket uses notify internally to send the messages, not the case here.

  3. Log in to comment