2008-04-03 John (J5) Palmieri <johnp@redhat.com>
+ Patch from Sumit <sumitskj_20@yahoo.com>, comments added
+
+ * dbus/dbus-transport.c(_dbus_transport_open): fix mem leak
+
+2008-04-03 John (J5) Palmieri <johnp@redhat.com>
+
* dbus/dbus-connection.c (dbus_connection_send): add documentation
to describe when to call dbus_connection_flush and
dbus_connection_unref after a call to dbus_connection_send is made
else
{
_DBUS_ASSERT_ERROR_IS_CLEAR (&tmp_error);
- transport->expected_guid = expected_guid;
+
+ /* In the case of autostart the initial guid is NULL
+ * and the autostart transport recursively calls
+ * _dbus_open_transport wich returns a transport
+ * with a guid. That guid is the definitive one.
+ *
+ * FIXME: if more transports are added they may have
+ * an effect on the expected_guid semantics (i.e.
+ * expected_guid and transport->expected_guid may
+ * both have values). This is very unlikely though
+ * we should either throw asserts here for those
+ * corner cases or refactor the code so it is
+ * clearer on what is expected and what is not
+ */
+ if(expected_guid)
+ transport->expected_guid = expected_guid;
}
return transport;