Issue 54891 - MLK: possible memory leak in SwTxtFormatter::NewFldPortion
Summary: MLK: possible memory leak in SwTxtFormatter::NewFldPortion
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-21 10:10 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 macro (7.16 KB, application/octet-stream)
2005-09-21 10:11 UTC, thomas.lange
no flags Details
Sample MailMerge document (6.12 KB, application/octet-stream)
2005-09-21 10:12 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-21 10:10:43 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.
Comment 1 thomas.lange 2005-09-21 10:11:42 UTC
Created attachment 29750 [details]
Document with Basic macro
Comment 2 thomas.lange 2005-09-21 10:12:14 UTC
Created attachment 29751 [details]
Sample MailMerge document
Comment 3 thomas.lange 2005-09-21 10:13:05 UTC
TL->FME: Please have a look. Thanks!
Comment 4 frank.meies 2006-03-09 08:37:09 UTC
.
Comment 5 frank.meies 2006-06-23 16:20:54 UTC
.
Comment 6 frank.meies 2006-06-23 16:24:17 UTC
.
Comment 7 frank.meies 2007-12-04 07:46:20 UTC
.