How to free ressources allocated by dbus_bus_get ?

John (J5) Palmieri johnp at redhat.com
Tue Nov 7 08:26:31 PST 2006


On Tue, 2006-11-07 at 15:08 +0100, 10function wrote:
> Hi Guyz,
> 
> I was wondering how memory ressources claimed by 'dbus_bus_get' should be released.
> I used 'dbus_connection_unref' and 'dbus_connection_close' calls, but memory leaks are always present.

Don't call dbus_connection_close on a shared connection, it will assert
if asserts are compiled in. dbus_connection_unref is the right way (you
wouldn't free a reffed object).




More information about the dbus mailing list