diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-08-02 14:38:38 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-08-02 14:38:38 +0200 |
commit | 4bf7b001cfa746554139f5fadb853082ebddab1f (patch) | |
tree | e7d210744873e83febca09fde6d8c141d0cb40f8 | |
parent | 0cf2ee06970022f14b3a76b7c354191840c67415 (diff) |
Print leaked controls before DEBUG_ASSERT
This allows us to actually see the list of leaked controls even if
DEBUG_ASSERTIONS_FATAL is enabled.
-rw-r--r-- | src/mixxx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mixxx.cpp b/src/mixxx.cpp index 9021bc96db..d4bc6e4d12 100644 --- a/src/mixxx.cpp +++ b/src/mixxx.cpp @@ -811,7 +811,7 @@ void MixxxMainWindow::finalize() { { QList<QSharedPointer<ControlDoublePrivate>> leakedControls = ControlDoublePrivate::takeAllInstances(); - VERIFY_OR_DEBUG_ASSERT(leakedControls.isEmpty()) { + if (!leakedControls.isEmpty()) { qWarning() << "The following" << leakedControls.size() @@ -827,6 +827,7 @@ void MixxxMainWindow::finalize() { pCDP->deleteCreatorCO(); } } + DEBUG_ASSERT(!"Controls were leaked!"); } // Finally drop all shared pointers by exiting this scope } |