Issue 120738 - When Storage object is destoryed, OWeakObject::m_pWeakConnectionPoint is not freed
Summary: When Storage object is destoryed, OWeakObject::m_pWeakConnectionPoint is not ...
Status: CLOSED FIXED
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:
URL:
Keywords:
Depends on:
Blocks: 120975
  Show dependency tree
 
Reported: 2012-08-28 08:39 UTC by zhang jianfang
Modified: 2016-04-09 10:40 UTC (History)
0 users

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


Attachments
fix code patch (695 bytes, patch)
2012-08-28 08:44 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-28 08:39:17 UTC
Storage::release() overwrites OWeakObject::release(), so when Storage object is released, OWeakObject::release() is not called, while OWeakObject.m_pWeakConnectionPoint normally is disposed in OWeakObject::release(). Then OWeakObject.m_pWeakConnectionPoint get leaked.
Comment 1 zhang jianfang 2012-08-28 08:44:35 UTC
Created attachment 79197 [details]
fix code patch

in Storage::release() API, need call to OWeakObject::release() explicitly to make sure the week object is released correctly.
Comment 2 SVN Robot 2012-09-05 02:54:33 UTC
"zhangjf" committed SVN revision 1380957 into trunk:
#i120738#, in Storage::release(), need call to OWeakObject::release() explici...
Comment 3 zhang jianfang 2012-09-05 02:57:02 UTC
Change to resolved state.
Comment 4 Marcus 2016-04-09 10:40:35 UTC
fixed in 4.0.0