summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-08-15 15:41:01 -0500
committerTimothy Pearson <[email protected]>2013-08-15 15:41:01 -0500
commit097eb253b8c8a2a5d3ae864f152ff50006995ec5 (patch)
treee9ddc3a6b38faeaf7141a502df95a0e35c330e9d
parent3af9b39a4b28b38dcdd955fd23b3a0e3a1106c95 (diff)
downloadtqt3-097eb253b8c8a2a5d3ae864f152ff50006995ec5.tar.gz
tqt3-097eb253b8c8a2a5d3ae864f152ff50006995ec5.zip
Automated update from Qt3
-rw-r--r--src/kernel/qapplication.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index feeaf191a..210f2aa1f 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