[Libreoffice-commits] core.git: i18nlangtag/source
Eike Rathke
erack at redhat.com
Thu Aug 29 05:33:47 PDT 2013
i18nlangtag/source/languagetag/simple-langtag.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 74d4f612af484735fae9c48b9cd7e609dab7fe64
Author: Eike Rathke <erack at redhat.com>
Date: Thu Aug 29 14:33:00 2013 +0200
don't leak variants
Change-Id: I03d1f7411ef46c41e19349297fa83e17ac81492e
diff --git a/i18nlangtag/source/languagetag/simple-langtag.cxx b/i18nlangtag/source/languagetag/simple-langtag.cxx
index c767e17..153500a 100644
--- a/i18nlangtag/source/languagetag/simple-langtag.cxx
+++ b/i18nlangtag/source/languagetag/simple-langtag.cxx
@@ -208,7 +208,10 @@ struct lt_tag_t : public my_t_impl
lt_region_t maRegion;
lt_list_t* mpVariants;
explicit lt_tag_t() : my_t_impl(), maLanguage(), maScript(), maRegion(), mpVariants(NULL) {}
- virtual ~lt_tag_t() {}
+ virtual ~lt_tag_t()
+ {
+ my_unrefList( mpVariants);
+ }
explicit lt_tag_t( const lt_tag_t& r )
:
my_t_impl( r),
More information about the Libreoffice-commits
mailing list