Issue 120667 - TextRanger, pBound member obj is not freed
Summary: TextRanger, pBound member obj is not freed
Alias: None
Product: performance
Classification: Code
Component: code (show other issues)
Version: AOO 3.4.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: not determined
Assignee: zhang jianfang
QA Contact:
Depends on:
Blocks: 120975
  Show dependency tree
Reported: 2012-08-23 01:14 UTC by zhang jianfang
Modified: 2016-04-09 10:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

fix code patch (318 bytes, patch)
2012-08-23 01:15 UTC, zhang jianfang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description zhang jianfang 2012-08-23 01:14:52 UTC
pBound object created in GetBoundRect is never released.

const Rectangle& TextRanger::_GetBoundRect()
	DBG_ASSERT( 0 == pBound, "Don't call twice." );
	pBound = new Rectangle( mpPolyPolygon->GetBoundRect() );
	return *pBound;
Comment 1 zhang jianfang 2012-08-23 01:15:53 UTC
Created attachment 79072 [details]
fix code patch
Comment 2 zhang jianfang 2012-09-03 05:11:33 UTC
Comment on attachment 79072 [details]
fix code patch

Remove review tag since long time no response.
Comment 3 SVN Robot 2012-09-03 05:15:36 UTC
"zhangjf" committed SVN revision 1380128 into trunk:
#i120667#, pBound member obj in TextRanger is not freedFound by: zhangjf Patc...
Comment 4 zhang jianfang 2012-09-03 05:16:30 UTC
change to resolved state.
Comment 5 Marcus 2016-04-09 10:40:50 UTC
fixed in 4.0.0