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