aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppStun.cpp')
-rw-r--r--src/base/QXmppStun.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/base/QXmppStun.cpp b/src/base/QXmppStun.cpp
index c5005237..eb3ce0e1 100644
--- a/src/base/QXmppStun.cpp
+++ b/src/base/QXmppStun.cpp
@@ -1252,8 +1252,7 @@ void QXmppTurnAllocation::disconnectFromHost()
// clear channels and any outstanding transactions
m_channels.clear();
- for (auto *transaction : m_transactions)
- delete transaction;
+ qDeleteAll(m_transactions);
m_transactions.clear();
// end allocation