[haiku-commits] Re: haiku: hrev45034 - in src/apps/debugger/user_interface: cli util

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 20 Dec 2012 15:08:21 -0500

On Dec 20, 2012 2:58 PM, "Clemens" <clemens.zeidler@xxxxxxxxx> wrote:

> no, there is only one reference in the calling code and _RegisterCommand
creates a CommandEntry holding a ref.
>
> deleting all CommandEntry s would delete the object

Again, no. Each entry does get one, yes, but _RegisterCommand takes over
the initial one passed in (see its first lines) to ensure the command gets
cleaned up in case creating the entry fails.

Rene

Other related posts: