Apache OpenOffice (AOO) Bugzilla – Issue 54891
MLK: possible memory leak in SwTxtFormatter::NewFldPortion
Last modified: 2013-08-07 14:44:35 UTC
Found in SRC680 m129 (master) during MailMerge via API: =========================================================== STACK INFO: Count: 28 Bytes: 1008 Alloc Module: sw680mi.dll Alloc Function: SwTxtFormatter__NewFldPortion Call Stack: MSVCR71.dll!_doserrno+0x7C342F92 MSVCR71.dll!_doserrno+0x7C342FA9 MSVCR71.dll!operator new+0x7C35C7C0 sw680mi.dll!SwTxtFormatter__NewFldPortion+0x7AC0A94 sw680mi.dll!SwTxtFormatter__NewExtraPortion+0x7AC11B0 sw680mi.dll!SwTxtFormatter__NewPortion+0x7BC7050 sw680mi.dll!SwTxtFormatter__BuildPortions+0x7BC7CB7 sw680mi.dll!SwTxtFormatter__FormatLine+0x7BC7FE2 sw680mi.dll!SwTxtFrm__FormatLine+0x7B40093 sw680mi.dll!SwTxtFrm___Format+0x7B40DA6 sw680mi.dll!SwTxtFrm___Format+0x7B418DB sw680mi.dll!SwTxtFrm__Format+0x7B41CBC sw680mi.dll!SwCntntFrm__MakeAll+0x7A9E447 sw680mi.dll!SwFrm__OptPrepareMake+0x7A9D268 sw680mi.dll!SwLayAction___FormatCntnt+0x7B7C090 sw680mi.dll!SwLayAction__FormatCntnt+0x7B7C8AC sw680mi.dll!SwLayAction__InternalAction+0x7B7D2DA sw680mi.dll!SwLayAction__Action+0x7B7D708 sw680mi.dll!SwRootFrm__Paint+0x7A61C23 sw680mi.dll!ViewShell__PrtOle2+0x7A037F9 sw680mi.dll!SwDocShell__Draw+0x79FF99C sfx680mi.dll!SfxObjectShell__DoDraw_Impl+0x4882CE6 sfx680mi.dll!SfxObjectShell__DoDraw+0x4882EB4 sfx680mi.dll!SfxObjectShell__GetPreviewMetaFile+0x4878837 sfx680mi.dll!SfxObjectShell__WriteThumbnail+0x4880196 sfx680mi.dll!SfxObjectShell__GenerateAndStoreThumbnail+0x4880721 sfx680mi.dll!SfxObjectShell__SaveTo_Impl+0x4880E4E sfx680mi.dll!SfxObjectShell__DoSaveAs+0x4881706 sw680mi.dll!SwNewDBMgr__MergeMailFiles+0x79784B1 sw680mi.dll!SwNewDBMgr__MergeNew+0x79793B1 =========================================================== 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.) TL->FME: Note: in this macro the 'execute' now gets called.
Created attachment 29750 [details] Document with Basic macro
Created attachment 29751 [details] Sample MailMerge document
TL->FME: Please have a look. Thanks!
.