]> spindle.queued.net Git - midori/commitdiff
Assert if element is unset in formhistory_editbox_key_pressed_cb
authorChristian Dywan <christian@twotoasts.de>
Sun, 12 Feb 2012 23:27:01 +0000 (00:27 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 12 Feb 2012 23:27:01 +0000 (00:27 +0100)
extensions/formhistory/formhistory-gdom-frontend.c

index 6e7f114b0e648af64251ae3b41e8c2f53bf21e23..401477cd8b012ff687de5b2373083d4228f473d4 100644 (file)
@@ -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);