diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp index feeaf191..210f2aa1 100644 --- a/src/kernel/qapplication.cpp +++ b/src/kernel/qapplication.cpp @@ -1241,9 +1241,13 @@ TQApplication::~TQApplication() tqDebug( "Widgets left: %i Max widgets: %i \n", TQWidget::instanceCounter, TQWidget::maxInstances ); } #ifndef QT_NO_SESSIONMANAGER - delete session_manager; + if ( session_manager ) { + delete session_manager; + } session_manager = 0; - delete session_key; + if ( session_key ) { + delete session_key; + } session_key = 0; #endif //QT_NO_SESSIONMANAGER