diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-03 04:07:23 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-03 04:35:12 +0100 |
commit | 39f821c9624604412e0f5a91a4390ab8853861e1 (patch) | |
tree | f72678c38e1c109bdfa9a28d5483ca8f48c3785b /i18npool | |
parent | a050b17880104f3cd172a1cfdc969110cb27f172 (diff) |
coverity#705657: fix memory leak
Change-Id: I326d2d168d48016d6f1784ff947edd17eb398838
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index cda62635b8eb..5880d115a2ea 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -1554,6 +1554,10 @@ LocaleData::getAllInstalledLocaleNames() throw(RuntimeException) } seq[nInstalled++] = tmpLocale; } + else + { + delete pCachedItem; + } } if ( nInstalled < nbOfLocales ) seq.realloc( nInstalled ); // reflect reality |