[systemd-devel] libabc, sub-objects, and reference counting
dh.herrmann at gmail.com
Mon Dec 8 08:09:17 PST 2014
On Sun, Dec 7, 2014 at 2:39 AM, Josh Triplett <josh at joshtriplett.org> wrote:
> The sample libabc includes functions to get a "thing", as a sample
> sub-object of the overall library context. Each "thing" has a reference
> to the parent library context, and a function to return that reference.
> Given that, shouldn't abc_thing_new_from_string call abc_ref, and
> abc_thing_unref call abc_unref?
Sure! Sounds like an oversight in libabc.
More information about the systemd-devel