Assert if element is unset in formhistory_editbox_key_pressed_cb

This commit is contained in:
Christian Dywan 2012-02-13 00:27:01 +01:00
parent cad539dfed
commit 3aa37f7953

View file

@ -259,8 +259,8 @@ formhistory_editbox_key_pressed_cb (WebKitDOMElement* element,
gint matches; gint matches;
/* FIXME: Priv is still set after module is disabled */ /* FIXME: Priv is still set after module is disabled */
if (!priv) g_return_if_fail (priv);
return; g_return_if_fail (priv->element);
if (priv->completion_timeout > 0) if (priv->completion_timeout > 0)
g_source_remove (priv->completion_timeout); g_source_remove (priv->completion_timeout);