diff options
author | hawcroft <derick.hawcroft@nokia.com> | 2010-11-25 00:10:27 (GMT) |
---|---|---|
committer | hawcroft <derick.hawcroft@nokia.com> | 2010-11-25 00:10:27 (GMT) |
commit | e1cde7c26b4923299b78e6165416788fbf8cd30e (patch) | |
tree | 7c0c5682560adecc9ec713d52c42ba4f763c77fd /src/gui | |
parent | bdeb4b458320ddefc9bcd19620bed7dc242b4d5c (diff) | |
download | Qt-e1cde7c26b4923299b78e6165416788fbf8cd30e.zip Qt-e1cde7c26b4923299b78e6165416788fbf8cd30e.tar.gz Qt-e1cde7c26b4923299b78e6165416788fbf8cd30e.tar.bz2 |
fix inf loop bug
Task-number: QTBUG-15409
Reviewed-by: Andrew Den-Exter
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qsound_s60.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qsound_s60.cpp b/src/gui/kernel/qsound_s60.cpp index df2830b..accfce2 100644 --- a/src/gui/kernel/qsound_s60.cpp +++ b/src/gui/kernel/qsound_s60.cpp @@ -150,7 +150,7 @@ void QAuServerS60::playCompleted(QAuBucketS60 *bucket, int error) } else { // We don't have a way to inform about errors -> just decrement loops // in order that QSound::isFinished will return true; - while (decLoop(sound)) {} + while (decLoop(sound) > 0) {} if (staticPlayingSounds.removeAll(sound)) delete sound; } |