Commit f44f1e7922fe27bb4e28da24eedeaee0b6827158
1 parent
c1a010a3
Fix incorrect heap object throw
Showing
2 changed files
with
2 additions
and
2 deletions
FlashMQTests/mainappthread.cpp
FlashMQTests/twoclienttestcontext.cpp
| ... | ... | @@ -134,7 +134,7 @@ void TwoClientTestContext::onClientError(const QMQTT::ClientError error) |
| 134 | 134 | errStr = "Socket timeout"; |
| 135 | 135 | |
| 136 | 136 | QString msg = QString("Client %1 error code: %2 (%3). Initiated delayed reconnect.\n").arg(_sender->clientId()).arg(error).arg(errStr); |
| 137 | - throw new std::runtime_error(msg.toStdString()); | |
| 137 | + throw std::runtime_error(msg.toStdString()); | |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | void TwoClientTestContext::onReceiverReceived(const QMQTT::Message &message) | ... | ... |