[systemd-devel] libabc, sub-objects, and reference counting
josh at joshtriplett.org
Mon Dec 8 13:07:12 PST 2014
On Mon, Dec 08, 2014 at 05:09:17PM +0100, David Herrmann wrote:
> 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.
I'll send in a patch.
- Josh Triplett
More information about the systemd-devel