GNOME Bugzilla – Bug 650114
[PATCH] gtk_entry_set_completion does not destroy idle source
Last modified: 2011-06-01 00:12:45 UTC
Created attachment 187773 [details] [review] Patch In gtkentry.c, check_completion_callback() runs as an idle callback when the text in the entry has been changed. However, the idle source is not removed when the entry's completion is set to NULL, triggering bug #650110 and causing a segfault. Attached patch removes the idle source when gtk_entry_set_completion is called. (As noted on #650110, this is triggered by the current git version of pcmanfm, but the bug is here in GTK, not in pcmanfm.)
Review of attachment 187773 [details] [review]: Good catch, thanks.