summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhawcroft <derick.hawcroft@nokia.com>2010-11-25 00:10:27 (GMT)
committerhawcroft <derick.hawcroft@nokia.com>2010-11-25 00:10:27 (GMT)
commite1cde7c26b4923299b78e6165416788fbf8cd30e (patch)
tree7c0c5682560adecc9ec713d52c42ba4f763c77fd
parentbdeb4b458320ddefc9bcd19620bed7dc242b4d5c (diff)
downloadQt-e1cde7c26b4923299b78e6165416788fbf8cd30e.zip
Qt-e1cde7c26b4923299b78e6165416788fbf8cd30e.tar.gz
Qt-e1cde7c26b4923299b78e6165416788fbf8cd30e.tar.bz2
fix inf loop bug
Task-number: QTBUG-15409 Reviewed-by: Andrew Den-Exter
-rw-r--r--src/gui/kernel/qsound_s60.cpp2
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;
}