diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-10 16:30:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-10 17:23:34 +0000 |
commit | 4b5c8f4826173578d6d088eab01b9816546785d3 (patch) | |
tree | 97ae97ef645dab6785fb984fe011da5b25b691bb /linguistic/source/lngsvcmgr.hxx | |
parent | 23facc76055a278f81acdfe5942965dc50f50e25 (diff) |
Fix leak, we own these pointers, so release them.
Diffstat (limited to 'linguistic/source/lngsvcmgr.hxx')
-rw-r--r-- | linguistic/source/lngsvcmgr.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx index a7057daf079f..9140a0f5ca8d 100644 --- a/linguistic/source/lngsvcmgr.hxx +++ b/linguistic/source/lngsvcmgr.hxx @@ -41,6 +41,8 @@ #include <com/sun/star/linguistic2/XAvailableLocales.hpp> #include <unotools/configitem.hxx> +#include <boost/ptr_container/ptr_vector.hpp> + #include "misc.hxx" #include "defs.hxx" @@ -105,7 +107,7 @@ class LngSvcMgr : LngSvcMgrListenerHelper * pListenerHelper; - typedef std::vector< SvcInfo * > SvcInfoArray; + typedef boost::ptr_vector< SvcInfo > SvcInfoArray; SvcInfoArray * pAvailSpellSvcs; SvcInfoArray * pAvailGrammarSvcs; SvcInfoArray * pAvailHyphSvcs; |