2003-02-16 Anders Carlsson <andersca@codefactory.se>
+ * dbus/dbus-auth.c: (client_try_next_mechanism):
+ Plug a leak.
+
+ * dbus/dbus-threads.c: (dbus_condvar_wait_timeout):
+ Return TRUE if there's no thread implementation around.
+
+ * glib/dbus-gmain.c: (free_source),
+ (dbus_connection_hookup_with_g_main):
+ Make sure to remove the GSource when the connection is finalized.
+
+2003-02-16 Anders Carlsson <andersca@codefactory.se>
+
* bus/dispatch.c: (bus_dispatch_message_handler):
* dbus/dbus-errors.h:
Return an error if someone tries to send a message to a service
_dbus_verbose ("Trying mechanism %s\n",
auth->mech->mechanism);
+ _dbus_string_free (&auth_command);
+
return TRUE;
}
if (cond && mutex && thread_functions.condvar_wait)
return (* thread_functions.condvar_wait_timeout) (cond, mutex, timeout_milliseconds);
else
- return FALSE;
+ return TRUE;
}
/**
GHashTable *watches;
};
+static int connection_slot = -1;
+
static gboolean dbus_connection_prepare (GSource *source,
gint *timeout);
static gboolean dbus_connection_check (GSource *source);
g_source_remove (timeout_tag);
}
+static void
+free_source (GSource *source)
+{
+ g_source_destroy (source);
+}
+
void
dbus_connection_hookup_with_g_main (DBusConnection *connection)
{
NULL, NULL);
g_source_attach (source, NULL);
+
+ if (connection_slot == -1 )
+ connection_slot = dbus_connection_allocate_data_slot ();
+
+ dbus_connection_set_data (connection, connection_slot, source,
+ (DBusFreeFunction)free_source);
+
}