Issue 120669 - Part of EmbedEventListener_Impl objects are not released when loading document having ole objects
Summary: Part of EmbedEventListener_Impl objects are not released when loading documen...
Status: CONFIRMED
Alias: None
Product: performance
Classification: Code
Component: code (show other issues)
Version: AOO 3.4.0
Hardware: All All
: P2 Normal (vote)
Target Milestone: not determined
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 120975
  Show dependency tree
 
Reported: 2012-08-23 03:17 UTC by zhang jianfang
Modified: 2012-09-15 12:54 UTC (History)
0 users

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


Attachments
embedhlp.cxx.patch (453 bytes, patch)
2012-08-23 03:22 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 03:17:49 UTC
The root cause is,

In function EmbeddedObjectRef::Clear(),  in case of mxObj.is() returns false, the mpImp->xListener won't be released normally.  But this case does exist, and cause a few of memory leaks.
Comment 1 zhang jianfang 2012-08-23 03:22:45 UTC
Created attachment 79075 [details]
embedhlp.cxx.patch

Make sure mpImp->xListener is always released correctly.
Comment 2 zhang jianfang 2012-08-24 03:31:14 UTC
Comment on attachment 79075 [details]
embedhlp.cxx.patch

Sorry, seems this patch cause some crash problem. Still need more study.