fix comment and tiny optimisation for shutdown.

Change-Id: I94e0f55f7fc38529a9ab165786efaf7ac649a9d3
This commit is contained in:
Michael Meeks
2014-06-24 16:12:08 +01:00
parent 3c440aad56
commit ab0b8a95ef

View File

@@ -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() )
{