From: Christian Dywan Date: Sun, 12 Feb 2012 23:27:01 +0000 (+0100) Subject: Assert if element is unset in formhistory_editbox_key_pressed_cb X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa37f7953836548e28b8bedf2c148b6bc39e5ea;p=midori Assert if element is unset in formhistory_editbox_key_pressed_cb --- diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c index 6e7f114b..401477cd 100644 --- a/extensions/formhistory/formhistory-gdom-frontend.c +++ b/extensions/formhistory/formhistory-gdom-frontend.c @@ -259,8 +259,8 @@ formhistory_editbox_key_pressed_cb (WebKitDOMElement* element, gint matches; /* FIXME: Priv is still set after module is disabled */ - if (!priv) - return; + g_return_if_fail (priv); + g_return_if_fail (priv->element); if (priv->completion_timeout > 0) g_source_remove (priv->completion_timeout);