[telepathy-gabble/master] bytestream-factory.c: bytestream_state_changed_cb: no need to remove the bytestream manually if we are disposing
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Jul 15 08:57:22 PDT 2009
---
src/bytestream-factory.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-factory.c b/src/bytestream-factory.c
index e2de613..2e586b5 100644
--- a/src/bytestream-factory.c
+++ b/src/bytestream-factory.c
@@ -1493,6 +1493,11 @@ bytestream_state_changed_cb (GabbleBytestreamIface *bytestream,
gpointer user_data)
{
GabbleBytestreamFactory *self = GABBLE_BYTESTREAM_FACTORY (user_data);
+ GabbleBytestreamFactoryPrivate *priv = GABBLE_BYTESTREAM_FACTORY_GET_PRIVATE (
+ self);
+
+ if (priv->dispose_has_run)
+ return;
if (state == GABBLE_BYTESTREAM_STATE_CLOSED)
{
--
1.5.6.5
More information about the telepathy-commits
mailing list