$NetBSD: patch-aa,v 1.3 2005/11/25 22:17:15 wiz Exp $ --- gtk/gtk-im-uim.c.orig 2005-09-26 22:56:59.000000000 +0200 +++ gtk/gtk-im-uim.c @@ -667,7 +667,8 @@ im_uim_finalize(GObject *obj) } if (uic->caret_state_indicator) { guint tag = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(uic->caret_state_indicator), "timeout-tag")); - g_source_remove(tag); + if (tag > 0) + g_source_remove(tag); gtk_widget_destroy(uic->caret_state_indicator); uic->caret_state_indicator = NULL; }