commit bfda154c75596d0b0cf4b98e45dda79691d1b1d0 Author: Simon McVittie Date: 2009-06-12 16:13:45 +0100 ExampleCallableMediaStream: ref self across a method call which might otherwise cause disposal diff --git a/examples/cm/callable/media-stream.c b/examples/cm/callable/media-stream.c index 1177064..12693c5 100644 --- a/examples/cm/callable/media-stream.c +++ b/examples/cm/callable/media-stream.c @@ -96,9 +96,11 @@ static void call_terminated_cb (ExampleCallableMediaChannel *channel, ExampleCallableMediaStream *self) { + g_object_ref (self); g_signal_handler_disconnect (channel, self->priv->call_terminated_id); self->priv->call_terminated_id = 0; example_callable_media_stream_close (self); + g_object_unref (self); } static void