aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r--src/ephy-session.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 1b7a5ef21..4591b4962 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -517,17 +517,14 @@ static int
write_tab (xmlTextWriterPtr writer,
EphyTab *tab)
{
- EphyEmbed *embed;
- char *location;
+ const char *address;
int ret;
ret = xmlTextWriterStartElement (writer, (xmlChar *) "embed");
if (ret < 0) return ret;
- embed = ephy_tab_get_embed (tab);
- location = ephy_embed_get_location (embed, TRUE);
- ret = xmlTextWriterWriteAttribute (writer, (xmlChar *) "url", (xmlChar *) location);
- g_free (location);
+ address = ephy_tab_get_address (tab);
+ ret = xmlTextWriterWriteAttribute (writer, (xmlChar *) "url", (xmlChar *) address);
if (ret < 0) return ret;
ret = xmlTextWriterEndElement (writer); /* embed */