[Libreoffice] SfxDocTplService_Impl posable memory leek

2010-12-23 Thread Joseph Powers
Source in question: sfx2/source/doc/doctemplates.cxx The code looks like this: //- struct NamePair_Impl { OUString maShortName; OUString maLongName; }; DECLARE_LIST( NameList_Impl, NamePair_Impl* ) class

Re: [Libreoffice] SfxDocTplService_Impl posable memory leek

2010-12-23 Thread Kohei Yoshida
On Thu, 2010-12-23 at 07:56 -0800, Joseph Powers wrote: [...] No where in the code can I see where maNames gets cleanup up. The only destructor is in the base class which just cleans up the list memory and doesn't free the NamePair_Impl memory. Indeed. This is bad. 1. Am I reading this

Re: [Libreoffice] SfxDocTplService_Impl posable memory leek

2010-12-23 Thread Caolán McNamara
On Thu, 2010-12-23 at 07:56 -0800, Joseph Powers wrote: 2. Where is this uses, so I can test my changes? (I'm converting the above code to use a vector) This should be File-Templates-Organize. A quick hack to the the UI from some code is to dig out the resource ids, e.g. there's a use of