Skip to content

Commit

Permalink
Debug|Client: Check that all reference-counted objects get deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 19, 2013
1 parent 316793e commit 1688213
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doomsday/client/src/main_client.cpp
Expand Up @@ -78,4 +78,9 @@ int main(int argc, char** argv)
QMessageBox::critical(0, DOOMSDAY_NICENAME, "App init failed:\n" + er.asText());
return -1;
}

#ifdef DENG2_DEBUG
// Check that all reference-counted objects have been deleted.
DENG2_ASSERT(de::Counted::totalCount == 0);
#endif
}

0 comments on commit 1688213

Please sign in to comment.