aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 949077ca3..7da565a2e 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2035,7 +2035,7 @@ modal_alert_cb (EphyEmbed *embed,
{
EphyWindowPrivate *priv = window->priv;
EphyTab *tab;
- char *address;
+ const char *address;
tab = ephy_tab_for_embed (embed);
g_return_val_if_fail (tab != NULL, FALSE);
@@ -2051,9 +2051,8 @@ modal_alert_cb (EphyEmbed *embed,
gtk_window_present (GTK_WINDOW (window));
/* make sure the location entry shows the real URL of the tab's page */
- address = ephy_embed_get_location (embed, TRUE);
+ address = ephy_tab_get_address (tab);
ephy_toolbar_set_location (priv->toolbar, address, NULL);
- g_free (address);
/* don't suppress alert */
return FALSE;