*ppRet cannot become non-null there out of thin air
Change-Id: Idd08a89dd0dcf05caeacc9e14a0a6ea10b433588
This commit is contained in:
parent
ef8a6be49a
commit
f4b218d164
@ -23,6 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/unordered_map.hpp>
|
#include <boost/unordered_map.hpp>
|
||||||
|
#include <cassert>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -250,6 +251,8 @@ inline void TypeDescriptor_Init_Impl::callChain(
|
|||||||
typelib_TypeDescription ** ppRet, rtl_uString * pName )
|
typelib_TypeDescription ** ppRet, rtl_uString * pName )
|
||||||
SAL_THROW(())
|
SAL_THROW(())
|
||||||
{
|
{
|
||||||
|
assert(ppRet != 0);
|
||||||
|
assert(*ppRet == 0);
|
||||||
if (pCallbacks)
|
if (pCallbacks)
|
||||||
{
|
{
|
||||||
CallbackSet_Impl::const_iterator aIt = pCallbacks->begin();
|
CallbackSet_Impl::const_iterator aIt = pCallbacks->begin();
|
||||||
@ -262,11 +265,6 @@ inline void TypeDescriptor_Init_Impl::callChain(
|
|||||||
++aIt;
|
++aIt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (*ppRet)
|
|
||||||
{
|
|
||||||
typelib_typedescription_release( *ppRet );
|
|
||||||
*ppRet = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//__________________________________________________________________________________________________
|
//__________________________________________________________________________________________________
|
||||||
|
Loading…
x
Reference in New Issue
Block a user