Skip to content

Commit

Permalink
DEBUG_ASSERT that no leaks occur.
Browse files Browse the repository at this point in the history
  • Loading branch information
rryan committed Sep 17, 2018
1 parent f109836 commit 19d9e56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreservices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ void clearHelper(std::shared_ptr<T>& ref_ptr, const char* name) {
ref_ptr.reset();
if (auto shared = weak.lock()) {
qWarning() << name << "was leaked! Use count:" << shared.use_count();
DEBUG_ASSERT(false);
}
}

Expand Down

0 comments on commit 19d9e56

Please sign in to comment.