To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=113605 Issue #|113605 Summary|embeddedobj: lacking ::ReleaseStgMedium() call on STGM |EDIUM object which causes obvious memory leaks Component|framework Version|OOO320m11 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|mba Reported by|zhangjfibm
------- Additional comments from [email protected] Tue Aug 3 07:24:12 +0000 2010 ------- in both api OleComponent::GetExtent( sal_Int64 nAspect ), and OleComponent::getTransferData( const datatransfer::DataFlavor& aFlavor ), they call the COM API pDataObject->GetData( &aFormat, &aMedium ) to read data from the STGMEDIUM object. But after that, the paired com API ::ReleaseStgMedium() on the STGMEDIUM object is missing, so it causes serious memory leak when opening a document has ole inside. + 1c7dc ( 1c7dc - 0) 5 allocs BackTraceABFD + 5 ( 5 - 0) BackTraceABFD allocations ntdll!RtlpNtMakeTemporaryKey+000074CE ntdll!LdrAlternateResourcesEnabled+00002B05 ntdll!RtlDosSearchPath_Ustr+00000310 kernel32!LocalAlloc+00000052 GDI32!EnumMetaFile+00001187 GDI32!SetEnhMetaFileBits+00000030 ole32!HENHMETAFILE_UserUnmarshalWorker+0000006B ole32!STGMEDIUM_UserUnmarshalWorker+000000D9 ole32!STGMEDIUM_UserUnmarshal+0000003D RPCRT4!NdrUserMarshalUnmarshall+000000F4 RPCRT4!NdrUserMarshalUnmarshall+00000083 RPCRT4!NdrCorrelationPass+00000142 RPCRT4!NdrClientCall2+000001B8 ole32!IDataObject_RemoteGetData_Proxy+0000001B ole32!CDefObject::GetData+000000C1 emboleobj!OleComponent::getTransferData+000001F7 (z:\lib\embeddedobj\source\msole\olecomponent.cxx, 1537) emboleobj!OleEmbeddedObject::getPreferredVisualRepresentation_Impl+00000612 (z:\lib\embeddedobj\source\msole\olevisual.cxx, 678) emboleobj!OleEmbeddedObject::getPreferredVisualRepresentation+0000008E (z:\lib\embeddedobj\source\msole\olevisual.cxx, 579) comphelp4MSC!comphelper::EmbeddedObjectContainer::GetGraphicReplacementStream+00000042 svtmi!svt::EmbeddedObjectRef::GetGraphicReplacementStream+00000044 (z:\lib\svtools\source\misc\embedhlp.cxx, 877) svtmi!svt::EmbeddedObjectRef::GetGraphicStream+00000224 (z:\lib\svtools\source\misc\embedhlp.cxx, 688) svtmi!svt::EmbeddedObjectRef::GetReplacement+000001D2 (z:\lib\svtools\source\misc\embedhlp.cxx, 467) svtmi!svt::EmbeddedObjectRef::GetGraphic+00000037 (z:\lib\svtools\source\misc\embedhlp.cxx, 485) svxmi!SdrOle2Obj::GetGraphic+0000002E (z:\impr\svx\source\svdraw\svdoole2.cxx, 1887) svxmi!sdr::contact::ViewContactOfSdrOle2Obj::createViewIndependentPrimitive2DSequence+00000040 (z:\impr\svx\source\sdr\contact\viewcontactofsdrole2obj.cxx, 187) svxmi!sdr::contact::ViewContact::getViewIndependentPrimitive2DSequence+00000040 (z:\impr\svx\source\sdr\contact\viewcontact.cxx, 301) svxmi!SdrObject::RecalcBoundRect+0000005E (z:\impr\svx\source\svdraw\svdobj.cxx, 930) svxmi!SdrObject::GetCurrentBoundRect+0000002A (z:\impr\svx\source\svdraw\svdobj.cxx, 912) svxmi!SdrObjList::RecalcRects+000000F2 (z:\impr\svx\source\svdraw\svdpage.cxx, 348) svxmi!SdrObjList::GetAllObjBoundRect+0000001C (z:\impr\svx\source\svdraw\svdpage.cxx, 704) svxmi!SdrPageView::InvalidateAllWin+000000B7 (z:\impr\svx\source\svdraw\svdpagv.cxx, 318) svxmi!SdrPageView::Show+00000029 (z:\impr\svx\source\svdraw\svdpagv.cxx, 290) --------------------------------------------------------------------- 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]
