diff options
author | mread <qt-info@nokia.com> | 2011-08-02 13:38:45 +0100 |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-08-02 13:38:45 +0100 |
commit | 448fffdd8f22a1b5af07b20c8ff5cf3f0f8de608 (patch) | |
tree | 3324379f044b8ecbbd7075fcd28879fd6655c762 /doc/src/snippets/code/doc_src_debug.cpp | |
parent | e3a22e7e91c0231acfaecfd8c2c77131c2930d96 (diff) | |
download | qt4-tools-448fffdd8f22a1b5af07b20c8ff5cf3f0f8de608.tar.gz |
Preventing QSoftkeyManager giving false positive memory leaks
QSoftkeyManager has a global static instance that was not being
deleted on app exit. This global static instance can own other objects,
the number of which grow with use up to a limit. This gives the
appearance of a memory leak when the app exits and you see increasing
heap cell counts.
The change is to use a QScopedPointer to clean up the static on app
exit.
Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'doc/src/snippets/code/doc_src_debug.cpp')
0 files changed, 0 insertions, 0 deletions