On Sat, May 24, 2014 at 2:58 AM, Lennart Poettering <lenn...@poettering.net> wrote: > On Thu, 22.05.14 15:29, Tom Gundersen (t...@jklm.no) wrote: > >> Let's keep this behavior consistent across our libraries. >> >> In order to keep the refcounting working, a DONT_DESTROY macro similar >> to the one in sd-bus was introduced. > > The DON_DESTROY stuff you only really need when you dispatch some > calback from a function call. It's there to make sure that the callback > can drop the final ref for the object, but you can still access the > object after it finished. There's no point in placing the macro in all > functions, that's entirely unnecessary.
I (intended to) place it in all functions that may indirectly dispatch a callback (even though it is deep down in the call chain). -t _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel