Skip to content
Browse files
Ensure that all QObjects which have been marked deleteLater
will get deleted in QgsApplication::exitQgis()

It's not strictly necessary, but helps remove a lot of noise
when tracking leaks using LeakSanitiser
  • Loading branch information
nyalldawson committed Aug 25, 2015
1 parent 572a3f4 commit 374d78963d1a5add05b567400a4eb92a19fb50c4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsapplication.cpp
@@ -629,6 +629,11 @@ void QgsApplication::initQgis()
void QgsApplication::exitQgis()
delete QgsProviderRegistry::instance();

//Ensure that all remaining deleteLater QObjects are actually deleted before we exit.
//This isn't strictly necessary (since we're exiting anyway) but doing so prevents a lot of
//LeakSanitiser noise which hides real issues
QgsApplication::sendPostedEvents( 0, QEvent::DeferredDelete );

QString QgsApplication::showSettings()

0 comments on commit 374d789

Please sign in to comment.