To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=68978
Issue #|68978
Summary|X11SalGraphics::Init can get called twice, but leaks m
|emory
Component|gsl
Version|OOo 2.0.3
Platform|All
URL|
OS/Version|Linux
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|PATCH
Priority|P3
Subcomponent|code
Assigned to|pl
Reported by|cmc
------- Additional comments from [EMAIL PROTECTED] Sat Aug 26 08:16:14 -0700
2006 -------
i.e. in
salvd.cxx
SalVirtualDevice* X11SalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData )
calls ->
else if( !pVDev->Init( pSalDisplay, nDX, nDY, nBitCount ) )
and then later calls
pVDev->InitGraphics( pVDev );
But...
BOOL X11SalVirtualDevice::Init( SalDisplay *pDisplay, long nDX, long nDY,
USHORT nBitCount, Pixmap hDrawable, void* pRenderFormatVoid )
calls -> pGraphics_->Init( this, pColormap, bDeleteColormap );
and X11SalVirtualDevice::InitGraphics is also
calls -> pGraphics_->Init( this, pColormap, bDeleteColormap );
so X11SalGraphics::Init gets called twice and can leak some memory, patch
attached to make Double Init safe
---------------------------------------------------------------------
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]