| 25 | |
| 26 | '''EDIT:''' for cinfirming the leak/or not, might be worth mentionning more data: the second leak item is this |
| 27 | |
| 28 | {{{ |
| 29 | allocation: base: 0x45e1fc8; size: 56; thread: 2308; alignment: 1 |
| 30 | (..) |
| 31 | <libroot.so> __builtin_new + 0x29 |
| 32 | <libbe.so> BPrivate::MouseDownThread<BMenuField>::TrackMouse(BMenuField *, void (BMenuField::*)(BMenuField *, BPoint), void (BMenuField::*)(BMenuField *, BPoint, unsigned long), long long) + 0x1e |
| 33 | }}} |
| 34 | |
| 35 | And looking at the code, there is indeed an operator-new [http://code.metager.de/source/xref/haiku/headers/private/shared/Thread.h#349 here] but the corresponding delete in Track() is never reached because of the kill_thread() [http://code.metager.de/source/xref/haiku/headers/private/shared/Thread.h#369 here] ; so we do leak the MouseDownThread object whenever the menu is opened and closed, right ? |
| 36 | |
| 37 | |