summaryrefslogtreecommitdiffstats
path: root/src/kernel/qobject.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-03-19 05:56:36 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-03-29 20:43:05 +0300
commitffbaaf0e1c181dd0f0d8ad7b273530f7cda086da (patch)
tree97be39accc7e8ba326d6e36d335405b69e810049 /src/kernel/qobject.cpp
parentfb0d62eec811ab2d4d73550e455944cecbe7e091 (diff)
downloadtqt3-ffbaaf0e1c181dd0f0d8ad7b273530f7cda086da.tar.gz
tqt3-ffbaaf0e1c181dd0f0d8ad7b273530f7cda086da.zip
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>
Diffstat (limited to 'src/kernel/qobject.cpp')
-rw-r--r--src/kernel/qobject.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp
index 3ab2d9b97..bb4c848b8 100644
--- a/src/kernel/qobject.cpp
+++ b/src/kernel/qobject.cpp
@@ -134,6 +134,13 @@ TQStyleControlElementDataPrivate* TQObject::controlElementDataPrivateObject() {
return d->controlElementDataPrivate;
}
+void TQObject::cleanupControlElementData() {
+ delete d->controlElementData;
+ d->controlElementData = 0;
+ delete d->controlElementDataPrivate;
+ d->controlElementDataPrivate = 0;
+}
+
#if defined(TQT_THREAD_SUPPORT)
void TQObject::moveToThread_helper(TQThread *targetThread)