Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion maia/maiaXmlRpcServerConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ MaiaXmlRpcServerConnection::MaiaXmlRpcServerConnection(QTcpSocket *connection, b
}

MaiaXmlRpcServerConnection::~MaiaXmlRpcServerConnection() {
clientConnection->deleteLater();
if (clientConnection) {
clientConnection->deleteLater();
}
delete header;
}

Expand Down
2 changes: 1 addition & 1 deletion maia/maiaXmlRpcServerConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class MaiaXmlRpcServerConnection : public QObject {
const QByteArray &method, const QList<QByteArray> argTypes);


QTcpSocket *clientConnection;
QPointer<QTcpSocket> clientConnection;
bool mAllowPersistentConnection;
QString headerString;
QHttpRequestHeader *header;
Expand Down