To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=79025
Issue #|79025
Summary|derefence of pType after typelib_typedescription_relea
|se if it
Component|udk
Version|OOo 2.2.1
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|kr
Reported by|cmc
------- Additional comments from [EMAIL PROTECTED] Fri Jun 29 14:16:39 +0000
2007 -------
in cppu/source/typelib/typelib.cxx "typelib_typedescription_register"
we have this code...
if( pTDR->pType->bOnDemand && !(*ppNewDescription)->bOnDemand ){
// switch from OnDemand to !OnDemand, so the description must be acquire
typelib_typedescription_acquire( pTDR->pType );}
else if( !pTDR->pType->bOnDemand && (*ppNewDescription)->bOnDemand ){
// switch from !OnDemand to OnDemand, so the description must be relesed
typelib_typedescription_release( pTDR->pType );}
pTDR->pType->bOnDemand = (*ppNewDescription)->bOnDemand; // initialized
pTDR->pType->pWeakRef = pTDR;
Surely if we *do* call typelib_typedescription_release on pType then we should't
go on to deference it afterwards ?
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]