Issue 54863 - MLK: possible memory leak in SwSvxUnoDrawPool when using SfxItemPool
Summary: MLK: possible memory leak in SwSvxUnoDrawPool when using SfxItemPool
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 680m129
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-20 16:01 UTC by thomas.lange
Modified: 2013-08-07 14:44 UTC (History)
1 user (show)

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


Attachments
Document with Basic macros (7.08 KB, application/octet-stream)
2005-09-20 16:01 UTC, thomas.lange
no flags Details
Sample mailmerge document (6.12 KB, application/octet-stream)
2005-09-20 16:02 UTC, thomas.lange
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description thomas.lange 2005-09-20 16:01:04 UTC
Found in SRC680 m129 (master) during MailMerge via API:

There are two stacks:
==================================================================

STACK INFO:

Count: 7
Bytes: 1372

Alloc Module: svl680mi.dll
Alloc Function: SfxItemPool_Impl__SfxItemPool_Impl

Call Stack:
MSVCR71.dll!_doserrno+0x7C342F92
MSVCR71.dll!_doserrno+0x7C342FA9
MSVCR71.dll!operator new+0x7C35C7C0
svl680mi.dll!SfxItemPool_Impl__SfxItemPool_Impl+0x13435A2
svl680mi.dll!SfxItemPool__SfxItemPool+0x1342781
svx680mi.dll!EditEngineItemPool__EditEngineItemPool+0x83068F5
svx680mi.dll!EditEngine__CreatePool+0x808AD54
svx680mi.dll!SvxUnoDrawPool__init+0x8246E60
svx680mi.dll!SvxUnoDrawPool__SvxUnoDrawPool+0x8247194
sw680mi.dll!SwSvxUnoDrawPool__SwSvxUnoDrawPool+0x7B42274
sw680mi.dll!SwXDocumentPropertyHelper__GetDrawTable+0x7991A92
sw680mi.dll!SwXTextDocument__createInstance+0x7992AD6
xo680mi.dll!XMLGraphicsDefaultStyle__SetDefaults+0x7640E8F
xo680mi.dll!SvXMLStylesContext__CopyStylesToDoc+0x7635897
sw680mi.dll!SwXMLImport__InsertStyles+0x7C79D77
sw680mi.dll!SwXMLStylesContext_Impl__EndElement+0x7C7ABB1
xo680mi.dll!SvXMLImport__endElement+0x76240F5
xof680mi.dll!XMLTransformerContext__EndElement+0x92C3F62
xof680mi.dll!XMLTransformerBase__endElement+0x92C156D
sax.uno.dll!sax_expatwrap__SaxExpatParser_Impl__callbackEndElement+0x31021A3
sax.uno.dll!XML_Parse+0x310B842
sax.uno.dll!XML_Parse+0x310BC00
sax.uno.dll!XML_Parse+0x310C4B9
sax.uno.dll!XML_Parse+0x310C64D
sax.uno.dll!XML_Parse+0x310C6EE
sax.uno.dll!XML_Parse+0x3109C47
sax.uno.dll!sax_expatwrap__SaxExpatParser_Impl__parse+0x3101A62
sax.uno.dll!sax_expatwrap__SaxExpatParser__parseStream+0x31030E6
sw680mi.dll!ReadThroughComponent+0x7B147E2
sw680mi.dll!ReadThroughComponent+0x7B14E7D

==================================================================
STACK INFO:

Count: 7
Bytes: 1372

Alloc Module: svl680mi.dll
Alloc Function: SfxItemPool__SfxItemPool

Call Stack:
MSVCR71.dll!_doserrno+0x7C342F92
MSVCR71.dll!_doserrno+0x7C342FA9
MSVCR71.dll!operator new+0x7C35C7C0
svl680mi.dll!SfxItemPool__SfxItemPool+0x13427A0
svx680mi.dll!EditEngineItemPool__EditEngineItemPool+0x83068F5
svx680mi.dll!EditEngine__CreatePool+0x808AD54
svx680mi.dll!SvxUnoDrawPool__init+0x8246E60
svx680mi.dll!SvxUnoDrawPool__SvxUnoDrawPool+0x8247194
sw680mi.dll!SwSvxUnoDrawPool__SwSvxUnoDrawPool+0x7B42274
sw680mi.dll!SwXDocumentPropertyHelper__GetDrawTable+0x7991A92
sw680mi.dll!SwXTextDocument__createInstance+0x7992AD6
xo680mi.dll!XMLGraphicsDefaultStyle__SetDefaults+0x7640E8F
xo680mi.dll!SvXMLStylesContext__CopyStylesToDoc+0x7635897
sw680mi.dll!SwXMLImport__InsertStyles+0x7C79D77
sw680mi.dll!SwXMLStylesContext_Impl__EndElement+0x7C7ABB1
xo680mi.dll!SvXMLImport__endElement+0x76240F5
xof680mi.dll!XMLTransformerContext__EndElement+0x92C3F62
xof680mi.dll!XMLTransformerBase__endElement+0x92C156D
sax.uno.dll!sax_expatwrap__SaxExpatParser_Impl__callbackEndElement+0x31021A3
sax.uno.dll!XML_Parse+0x310B842
sax.uno.dll!XML_Parse+0x310BC00
sax.uno.dll!XML_Parse+0x310C4B9
sax.uno.dll!XML_Parse+0x310C64D
sax.uno.dll!XML_Parse+0x310C6EE
sax.uno.dll!XML_Parse+0x3109C47
sax.uno.dll!sax_expatwrap__SaxExpatParser_Impl__parse+0x3101A62
sax.uno.dll!sax_expatwrap__SaxExpatParser__parseStream+0x31030E6
sw680mi.dll!ReadThroughComponent+0x7B147E2
sw680mi.dll!ReadThroughComponent+0x7B14E7D
sw680mi.dll!XMLReader__Read+0x7B15FBB

==================================================================

To reproduce open save attached documents, open MailMerge2.sxw and edit the
pathes appropriately then start the macro from within the Basic IDE.
(Since the stacks were obtained from 7 successive calls it may be nececessary to
start the macro more than once if per chance the repsective code is not always
called.)
Comment 1 thomas.lange 2005-09-20 16:01:57 UTC
Created attachment 29717 [details]
Document with Basic macros
Comment 2 thomas.lange 2005-09-20 16:02:31 UTC
Created attachment 29718 [details]
Sample mailmerge document
Comment 3 thomas.lange 2005-09-20 16:04:47 UTC
TL->FME: Please have a look. Thanks!
Comment 4 frank.meies 2006-03-09 08:36:26 UTC
.
Comment 5 frank.meies 2006-06-23 16:20:46 UTC
.
Comment 6 frank.meies 2007-12-04 07:46:17 UTC
.