[haiku-bugs] Re: [Haiku] #11934: [PATCH] Solve memory leaks in Deskbar and some replicants.

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 09 Apr 2015 10:29:23 -0000

#11934: [PATCH] Solve memory leaks in Deskbar and some replicants.
------------------------------+----------------------------
Reporter: Barrett | Owner: stippi
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: User Interface | Version: R1/Development
Resolution: | Keywords: Deskbar
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
------------------------------+----------------------------

Comment (by pulkomandy):

0001: ok, I missed that. we can leave it as it is now then.
0002: a function that takes ownership only on success is difficult to
understand. If we can't rearrange that (for example, can the function
delete the object directly in case of failure?), we should at least add a
comment as to why the code has to do these unusual things with the
ObjectDeleter.

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

Other related posts: