#13133: [Patch] apps/deskbar/DeskbarMenu.cpp: fix memory leak
----------------------------------+------------------------------
Reporter: mt | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/Deskbar | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
----------------------------------+------------------------------
In TDeskbarMenu::AddNextItem(), memory allocated to 'recentItem' at line
174 [1] could leak at line 203 [2] if 'enabled' is false at line 181 [3].
[1] http://cgit.haiku-
os.org/haiku/tree/src/apps/deskbar/DeskbarMenu.cpp#n174
[2] http://cgit.haiku-
os.org/haiku/tree/src/apps/deskbar/DeskbarMenu.cpp#n203
[3] http://cgit.haiku-
os.org/haiku/tree/src/apps/deskbar/DeskbarMenu.cpp#n181
--
Ticket URL: <https://dev.haiku-os.org/ticket/13133>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.