More complete de-initialization if the IO channel was created

This commit is contained in:
Pierre Pronchery 2014-01-06 00:27:38 -06:00
parent 74a1e19db2
commit 1e1b09abc6

View File

@ -191,10 +191,7 @@ static void _video_destroy(VideoPhonePlugin * video)
{ {
/* XXX we ignore errors at this point */ /* XXX we ignore errors at this point */
g_io_channel_shutdown(video->channel, TRUE, NULL); g_io_channel_shutdown(video->channel, TRUE, NULL);
#if 0 g_io_channel_unref(video->channel);
/* FIXME seems to cause a crash in the original code */
g_object_unref(video->channel);
#endif
} }
if(video->pixmap != NULL) if(video->pixmap != NULL)
g_object_unref(video->pixmap); g_object_unref(video->pixmap);