[haiku-bugs] [Haiku] #12293: MouseDownThread leaks a pthread+object

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Thu, 06 Aug 2015 16:10:59 -0000

#12293: MouseDownThread leaks a pthread+object
--------------------------------+------------------------------
Reporter: ttcoder | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
--------------------------------+------------------------------
Picking up from ticket:12286#comment:11 ..etc

Seemingly not a huge biggie since this is a heap leak (not ports or
thread_id's leak), and even then it's a couple KBytes on each mouse
invokation.

Summary:
- depending on how the class is used elsewhere, the fix ''might'' be as
simple as removing the kill_thread()/TRESPASS()/ASSERT() calls.
- if other users do not behave as BMenu does (e.g. they expect to delete
the object themselves and cannot be easily re-organized) things are more
dicey.. It might take a rewrite/reorganization of that class.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12293>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: