From 7ef362ec67c27a029c67f491be42633e18518815 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 May 2011 20:07:14 -0400 Subject: GtkEntryCompletion: add a sanity check Patch by John Lindgren, https://bugzilla.gnome.org/show_bug.cgi?id=650110 --- gtk/gtkentrycompletion.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk/gtkentrycompletion.c') diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 41f707f432..b88fa802f3 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1263,6 +1263,7 @@ gtk_entry_completion_complete (GtkEntryCompletion *completion) gchar *tmp; g_return_if_fail (GTK_IS_ENTRY_COMPLETION (completion)); + g_return_if_fail (GTK_IS_ENTRY (completion->priv->entry)); if (!completion->priv->filter_model) return; -- cgit v1.2.1