summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-20 15:25:06 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-21 09:22:47 (GMT)
commit1341fe5198bbf58c1a25a5680fbffec3b9b75eb6 (patch)
tree26581ac91553d7af010ba24681fd1039e07c04fa /src
parent0571d9617633a993f3a40e388ac426d78a376ce2 (diff)
downloadQt-1341fe5198bbf58c1a25a5680fbffec3b9b75eb6.zip
Qt-1341fe5198bbf58c1a25a5680fbffec3b9b75eb6.tar.gz
Qt-1341fe5198bbf58c1a25a5680fbffec3b9b75eb6.tar.bz2
Fixes memory leak of global data.
Task-number: related to 253013 Reviewed-by: João Abecasis
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qlocale.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp
index 296d5a0..85e49c7 100644
--- a/src/corelib/tools/qlocale.cpp
+++ b/src/corelib/tools/qlocale.cpp
@@ -5299,7 +5299,11 @@ struct p5s_deleter
{
~p5s_deleter()
{
- Bfree(p5s);
+ while (p5s) {
+ Bigint *next = p5s->next;
+ Bfree(p5s);
+ p5s = next;
+ }
}
};