diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-07-20 15:25:06 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-07-21 09:22:47 (GMT) |
commit | 1341fe5198bbf58c1a25a5680fbffec3b9b75eb6 (patch) | |
tree | 26581ac91553d7af010ba24681fd1039e07c04fa /src | |
parent | 0571d9617633a993f3a40e388ac426d78a376ce2 (diff) | |
download | Qt-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.cpp | 6 |
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; + } } }; |