Remove refcounting from DBusAuth and DBusAuthorization
authorCosimo Alfarano <cosimo.alfarano@collabora.com>
Fri, 23 Aug 2013 00:12:46 +0000 (02:12 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 23 Aug 2013 00:14:28 +0000 (02:14 +0200)
commit7f6d7229d8812d985d544cf5dd3636865c5abc81
treeb3b5bd0f7440ce72a0befdce0109618b8ce527b5
parent22fc03d274f186a788efbdbe6b6dfcff1ad474df
Remove refcounting from DBusAuth and DBusAuthorization

Those structs are for DBusTransport internal use, they should not be
referenced outside it.
The transport needs only to allocate memory on initialization and free
it on finalization.
The lifecycle for the two allocated structs is DBusTransport lifecycle
and at DBusTransport's finalization its connection is already
disconnected.
The assumption is that the transport owns a reference for any object the
two structs holds a reference for (particularly DBusConnection)

Bug: http://bugs.freedesktop.org/show_bug.cgi?id=39720
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-auth-script.c
dbus/dbus-auth.c
dbus/dbus-auth.h
dbus/dbus-authorization.c
dbus/dbus-authorization.h
dbus/dbus-transport.c