|
From: Chris F. <cd...@fo...> - 2010-06-25 08:05:48
|
On Fri, Jun 25, 2010 at 07:49:57PM +1200, Daniel Gollub wrote: > The caller doesn't have to unref - since OSyncPluginConfig* gets (in this > function) or is already assigned to a OSyncMember struct. Once later one get > freed the OSyncPluginConfig get's also unrefed. > > Does this make sense? Hi Daniel, Thanks for the reply! It doesn't make sense to me yet.... unless the config gets unref'd twice later on? I'm confused with the _new() and the _set_config()... the _new() sets the ref to 1, and the _set_config() bumps it, so it seems that the returned config would have a ref of 2, even though it had just been created, and only the member holds a ref. I haven't run this through a debugger yet... this is just from reading the code, since I'm experimenting with the config API. Thanks, - Chris |