[farsight2/master] Keep ref to main transmitter in nice transmitter
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:20 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index dff2f27..ca8bd32 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -356,6 +356,12 @@ fs_nice_stream_transmitter_dispose (GObject *object)
}
FS_NICE_STREAM_TRANSMITTER_UNLOCK (self);
+ if (self->priv->transmitter)
+ {
+ g_object_unref (self->priv->transmitter);
+ self->priv->transmitter = NULL;
+ }
+
parent_class->dispose (object);
}
@@ -1317,7 +1323,7 @@ fs_nice_stream_transmitter_newv (FsNiceTransmitter *transmitter,
return NULL;
}
- streamtransmitter->priv->transmitter = transmitter;
+ streamtransmitter->priv->transmitter = g_object_ref (transmitter);
if (!fs_nice_stream_transmitter_build (streamtransmitter, participant, error))
{
--
1.5.6.5
More information about the farsight-commits
mailing list