diff options
Diffstat (limited to 'src/ephy-location-action.c')
-rw-r--r-- | src/ephy-location-action.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c index 922f14298..927c09396 100644 --- a/src/ephy-location-action.c +++ b/src/ephy-location-action.c @@ -135,12 +135,13 @@ action_activated_cb (GtkEntryCompletion *completion, url = ephy_bookmarks_resolve_address (action->priv->bookmarks, smart_url, content); - g_return_if_fail (url != NULL); + g_free (content); + if (url == NULL) return; + + ephy_link_open (EPHY_LINK (action), url, NULL, + ephy_link_flags_from_current_event ()); - ephy_link_open (EPHY_LINK (action), url, NULL, 0); - g_free (url); - g_free (content); } } |