rem: pthread_cancel (gtx->priv->thread);
context: gtk_xine_unrealize (GtkWidget * widget){	GtkXine *gtx;	g_return_if_fail (widget != NULL);	g_return_if_fail (GTK_IS_XINE (widget));	gtx = GTK_XINE (widget);	/* stop event thread */	pthread_cancel (gtx->priv->thread);	xine_exit (gtx->priv->xine);	/* save configuration */	gtx->priv->config->save (gtx->priv->config);	/* Hide all windows */	if (GTK_WIDGET_MAPPED (widget))		gtk_widget_unmap (widget);	GTK_WIDGET_UNSET_FLAGS (widget, GTK_MAPPED);	/* This destroys widget->window and unsets the realized flag */	if (GTK_WIDGET_CLASS (parent_class)->unrealize)		(*GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);}