diff options
author | Fabian Kosmale <[email protected]> | 2025-03-21 13:28:41 +0100 |
---|---|---|
committer | Fabian Kosmale <[email protected]> | 2025-03-21 16:48:50 +0100 |
commit | fdb569a3e29c58130924a51b333b5aff5ec64eb3 (patch) | |
tree | 192ec38c5936af92f084b881cfa420b445556b95 | |
parent | 930dfd11dd7d8a0135c5d80d047b95bb8a55cbcd (diff) |
QKdeTheme: Don't leak resources on shutdown
The theme stores an array of pointers to allocated QFonts, which need to
be freed.
While this is not a "hard" leak (the OS will clean up the memory on
shutdown, and QKdeTheme lives as long as the application), it creates
ASAN warnings, which distract from more severe issues.
Change-Id: Iaa57138e5273c300c616ba85340283f18a267b09
Reviewed-by: Piotr WierciĆski <[email protected]>
-rw-r--r-- | src/gui/platform/unix/qkdetheme.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/platform/unix/qkdetheme.cpp b/src/gui/platform/unix/qkdetheme.cpp index affcdb8c203..7cb571fc3b6 100644 --- a/src/gui/platform/unix/qkdetheme.cpp +++ b/src/gui/platform/unix/qkdetheme.cpp @@ -67,6 +67,7 @@ public: }; QKdeThemePrivate(const QStringList &kdeDirs, int kdeVersion); + ~QKdeThemePrivate() { clearResources(); } static QString kdeGlobals(const QString &kdeDir, int kdeVersion) { |