Hi Andre,
here comes another big memory leak...
Maybe it is a good starting point to have a look MathArray::MathArray...?
Michael
******************
MLK: 10800 bytes leaked in 3 blocks
This memory was allocated from:
malloc [rtlib.o]
__malloc_alloc_template<0>::allocate(unsigned int)
[stl_alloc.h:157]
allocate__t24__default_alloc_template2b0i0Ui
[stl_alloc.h:407]
allocate__t12simple_alloc2Z10MathXArrayZt24__default_alloc_template2b0i0Ui
[stl_alloc.h:228]
_M_allocate__t18_Vector_alloc_base3Z10MathXArrayZt9allocator1Z10MathXArrayb1Ui
[stl_vector.h:93]
_Vector_base<MathXArray,allocator<MathXArray>>::_Vector_base<MathXArray,allocator<MathXArray>>(unsigned
int,const allocator<MathXArray>&) [stl_vector.h:110]
vector<MathXArray,allocator<MathXArray>>::vector<MathXArray,allocator<MathXArray>>(const
vector<MathXArray,allocator<MathXArray>>&) [stl_vector.h:234]
MathInset::MathInset(const MathInset&) [math_inset.h:232]
MathGridInset::MathGridInset(const MathGridInset&)
[math_gridinset.h:129]
MathArrayInset::MathArrayInset(const MathArrayInset&)
[math_arrayinset.h:20]
MathArrayInset::clone()const [math_arrayinset.C:16]
MathArray::MathArray(const MathArray&) [array.C:33]
MathXArray::MathXArray(const MathXArray&) [xarray.h:62]
construct__H2Z10MathXArrayZ10MathXArray_PX01RCX11_v
[stl_construct.h:48]
__uninitialized_copy_aux__H2ZPC10MathXArrayZP10MathXArray_X01X01X11G12__false_type_X11
[stl_uninitialized.h:58]
__uninitialized_copy__H3ZPC10MathXArrayZP10MathXArrayZ10MathXArray_X01X01X11PX21_X11
[stl_uninitialized.h:71]
uninitialized_copy__H2ZPC10MathXArrayZP10MathXArray_X01X01X11_X11
[stl_uninitialized.h:80]
vector<MathXArray,allocator<MathXArray>>::vector<MathXArray,allocator<MathXArray>>(const
vector<MathXArray,allocator<MathXArray>>&) [stl_vector.h:235]
MathInset::MathInset(const MathInset&) [math_inset.h:232]
MathGridInset::MathGridInset(const MathGridInset&)
[math_gridinset.h:129]
MathMatrixInset::MathMatrixInset(const MathMatrixInset&)
[math_matrixinset.h:84]
MathMatrixInset::clone()const [math_matrixinset.C:91]
InsetFormulaBase::InsetFormulaBase(const InsetFormulaBase&)
[formulabase.C:132]
InsetFormula::InsetFormula(const InsetFormula&)
[formula.h:86]
InsetFormula::clone(const Buffer&,bool)const [formula.C:75]
Paragraph::Paragraph(const Paragraph&,bool)
[paragraph.C:138]
InsetText::setParagraphData(Paragraph*) [insettext.C:1668]
InsetText::init(const InsetText*,bool) [insettext.C:157]
InsetText::operator =(const InsetText&) [insettext.C:133]
LyXTabular::cellstruct::operator =(const
LyXTabular::cellstruct&) [tabular.C:237]
__copy__H3ZPCQ210LyXTabular10cellstructZPQ210LyXTabular10cellstructZi_X01X01X11G26random_access_iterator_tagPX21_X11
[stl_algobase.h:139]
__copy_dispatch<const
LyXTabular::cellstruct*,LyXTabular::cellstruct*,__false_type>::copy(const
LyXTabular::cellstruct*,const
LyXTabular::cellstruct*,LyXTabular::cellstruct*) [stl_algobase.h:161]
copy__H2ZPCQ210LyXTabular10cellstructZPQ210LyXTabular10cellstruct_X01X01X11_X11
[stl_algobase.h:188]
vector<LyXTabular::cellstruct,allocator<LyXTabular::cellstruct>>::operator
=(const vector<LyXTabular::cellstruct,allocator<LyXTabular::cellstruct>>&)
[stl_vector.h:517]
__copy__H3ZPt6vector2ZQ210LyXTabular10cellstructZt9allocator1ZQ210LyXTabular10cellstructZPt6vector2ZQ210LyXTabular10cellstructZt9allocator1ZQ210LyXTabular10cellstructZi_X01X01X11G26random_access_iterator_tagPX21_X11
[stl_algobase.h:139]
copy__t15__copy_dispatch3ZPt6vector2ZQ210LyXTabular10cellstructZt9allocator1ZQ210LyXTabular10cellstructZPt6vector2ZQ210LyXTabular10cellstructZt9allocator1ZQ210LyXTabular10cellstructZ12__false_typePt6vector2ZQ210LyXTabular10cellstructZt9allocator1ZQ210LyXT
[stl_algobase.h:161]
........
--
======================================================================
Michael Schmitt phone: +49 451 500 3725
Institute for Telematics secretary: +49 451 500 3721
Medical University of Luebeck fax: +49 451 500 3722
Ratzeburger Allee 160 eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany WWW: http://www.itm.mu-luebeck.de
======================================================================