summaryrefslogtreecommitdiffstats
path: root/src/kernel/qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qapplication.cpp')
-rw-r--r--src/kernel/qapplication.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index e8658cdab..87d4fd7d0 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -1203,6 +1203,12 @@ TQApplication::~TQApplication()
tqt_desktopWidget = 0;
is_app_closing = TRUE;
+ // Due to hacks to spead up TQStyle engine (see git hash 523c1fd99) TQObjects now contain a
+ // reference to TQStyleControlElementData object which among other contain TQFont members.
+ // But for a proper cleanup all fonts should be destroyed before disconnecting from X11 (in
+ // tqt_cleanup()). So we will have to cleanup up the data explicitly.
+ cleanupControlElementData();
+
#ifndef TQT_NO_CLIPBOARD
delete tqt_clipboard;
tqt_clipboard = 0;