From 1e1b09abc6a835cd0e8766165323653fc77e3743 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 6 Jan 2014 00:27:38 -0600 Subject: [PATCH] More complete de-initialization if the IO channel was created --- src/plugins/video.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/video.c b/src/plugins/video.c index bea16a2..198e0e4 100644 --- a/src/plugins/video.c +++ b/src/plugins/video.c @@ -191,10 +191,7 @@ static void _video_destroy(VideoPhonePlugin * video) { /* XXX we ignore errors at this point */ g_io_channel_shutdown(video->channel, TRUE, NULL); -#if 0 - /* FIXME seems to cause a crash in the original code */ - g_object_unref(video->channel); -#endif + g_io_channel_unref(video->channel); } if(video->pixmap != NULL) g_object_unref(video->pixmap);