telepathy-gabble: tube-stream: remove_transport(): ensure that transport is not NULL

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Tue Jun 3 04:39:18 PDT 2014


Module: telepathy-gabble
Branch: master
Commit: d7e92269ae55f477aef7acb59841be27bdc22de3
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=d7e92269ae55f477aef7acb59841be27bdc22de3

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Jun  2 16:28:51 2014 +0200

tube-stream: remove_transport(): ensure that transport is not NULL

---

 src/tube-stream.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index c623813..526d092 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -282,6 +282,8 @@ remove_transport (GabbleTubeStream *self,
 {
   GabbleTubeStreamPrivate *priv = self->priv;
 
+  g_return_if_fail (transport != NULL);
+
   DEBUG ("disconnect and remove transport");
   g_signal_handlers_disconnect_matched (transport, G_SIGNAL_MATCH_DATA,
       0, 0, NULL, NULL, self);



More information about the telepathy-commits mailing list