aboutsummaryrefslogtreecommitdiffstats
path: root/src/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c
index 7b99447a1..387a96edd 100644
--- a/src/session.c
+++ b/src/session.c
@@ -445,9 +445,10 @@ save_tab (EphyWindow *window,
xmlNodePtr window_node)
{
EmbedChromeMask chrome;
- const char *location;
+ char *location;
const char *title;
xmlNodePtr embed_node;
+ EphyEmbed *embed;
chrome = ephy_window_get_chrome (window);
@@ -463,8 +464,10 @@ save_tab (EphyWindow *window,
xmlSetProp (embed_node, "title", title);
/* otherwise, use the actual location. */
- location = ephy_tab_get_location (tab);
+ embed = ephy_tab_get_embed (tab);
+ ephy_embed_get_location (embed, TRUE, &location);
xmlSetProp (embed_node, "url", location);
+ g_free (location);
/* insert node into the tree */
xmlAddChild (window_node, embed_node);