summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemtrayicon/tst_qsystemtrayicon.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-01-07 15:57:28 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-01-11 09:54:14 (GMT)
commit16e203e5de2aa984dadad2e4edd68d1c3446d9c1 (patch)
treeed88de0b963bfdb892133480d7b778452b71fbb8 /tests/auto/qsystemtrayicon/tst_qsystemtrayicon.cpp
parent497cd0564b2471354b1ac86f00c5ba90845aa2e1 (diff)
downloadQt-16e203e5de2aa984dadad2e4edd68d1c3446d9c1.zip
Qt-16e203e5de2aa984dadad2e4edd68d1c3446d9c1.tar.gz
Qt-16e203e5de2aa984dadad2e4edd68d1c3446d9c1.tar.bz2
Fix handle leak in symbian QTimer implementation
The timer handle was only being closed when a timer was cancelled, which resulted in a leak for one shot timers that have completed normally. Instead the timer is now closed in a destructor (closing null handles is safe, so it doesn't matter if the handle was never created - e.g. in the case of a zero timer) Also added a handle check before creating a timer to prevent a leak in case the start function is called twice in the backend. Task-number: QTBUG-16380 Reviewed-by: mread (cherry picked from commit 2b1b617664bfc78f6e95e53dc0f9749bd1f2d27a)
Diffstat (limited to 'tests/auto/qsystemtrayicon/tst_qsystemtrayicon.cpp')
0 files changed, 0 insertions, 0 deletions