Improve TQFont-related cleanup

Improve TQFont cleanup making sure that all instances of TQFont are
destroyed before TQApplication (or specifically before disconnect from
X11). This gets reed of several valgrind complains about leaks deep
inside fontconfig.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 1b951e5229)
r14.1.x
Alexander Golubev 8 months ago committed by Michele Calgaro
parent f2504a8f49
commit a097a55f62
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1203,7 +1203,7 @@ 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
// Due to hacks to speed 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.

Loading…
Cancel
Save