[haiku-bugs] Re: [Haiku] #12286: Menus seem to be leaking ports

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Sat, 08 Aug 2015 09:30:00 -0000

#12286: Menus seem to be leaking ports
-------------------------------------+----------------------------
Reporter: ttcoder | Owner: axeld
Type: bug | Status: new
Priority: blocker | Milestone: R1/beta1
Component: Servers/launch_daemon | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+----------------------------

Comment (by ttcoder):

I may have taken a wrong turn in comment:11 by focusing on class BMenu;
the KDL ports dump shows which port is leaked, it's the one named `mbar
cached menu` : the BMenuWindow ctor passes that name string to BWindow,
which
[http://code.metager.de/source/xref/haiku/src/kits/interface/Window.cpp#308
passes it here] to BLooper. It would take some tracing/digging to check
for sure that the
[http://code.metager.de/source/xref/haiku/src/kits/app/Looper.cpp#134
close_port()] call is indeed not executed, even though the code path looks
like it should be. Will take me a few days to get to this, so kinda hoping
someone will beat me to it :-)

--
Ticket URL: <https://dev.haiku-os.org/ticket/12286#comment:23>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: