Apache OpenOffice (AOO) Bugzilla – Issue 50237
MLK: Basic objects after some open/close
Last modified: 2013-08-07 14:41:36 UTC
Start a office with an empty text document. Run a macro which creates and closes a lot of empty text documents. Seems some basic objects are leaking...
ab->mt: It only seems so... :-) I debugged a corresponding macro and found that for every variable - including variables in other libraries, e.g. the wizards - declared as public SbxObject::Make() is called when the macro is executed. The SbxProperty instances created there are not deleted afterwards. But this is no leak as these instances are deleted the next time the macro is started. The new instances replace the old ones and force the old ones to be deleted. I checked this using the debugger. This is also true for the SbxVarEntry instances created in SbxArray::GetRef shown by your memory log. So this is not really a leak. There's always only one set of allocated objects and the memory usage does not increase every time the macro runs. All allocated objects are freed but not in the time frame of your test. The last set of objects will be deleted together with the Basic object itself. -> INVALID
.
Verified...
closing