diff options
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 583b73733f9a..85335784929a 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -270,7 +270,9 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() if( pWeakMap ) { std::vector< typelib_TypeDescriptionReference * > ppTDR; - // save al weak references + ppTDR.reserve( pWeakMap->size() ); + + // save all weak references WeakMap_Impl::const_iterator aIt = pWeakMap->begin(); while( aIt != pWeakMap->end() ) { |