aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-01-30 22:51:22 +0800
committerXan Lopez <xan@src.gnome.org>2009-01-30 22:51:22 +0800
commitc2d3fd5f09e9283fb44f4db543db0ac816bb354d (patch)
tree1d4d34ac16b37369995a6eb4d3f6a0f016b4a579 /src
parent6f4d3c9b01f2ea550402e3bc5de25b481638b803 (diff)
downloadgsoc2013-epiphany-c2d3fd5f09e9283fb44f4db543db0ac816bb354d.tar.gz
gsoc2013-epiphany-c2d3fd5f09e9283fb44f4db543db0ac816bb354d.tar.zst
gsoc2013-epiphany-c2d3fd5f09e9283fb44f4db543db0ac816bb354d.zip
ephy-session: plug memory leak.
svn path=/trunk/; revision=8745
Diffstat (limited to 'src')
-rw-r--r--src/ephy-session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 7dc6be089..4dabe3f46 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -1175,7 +1175,7 @@ ephy_session_save (EphySession *session,
xmlTextWriterPtr writer;
GList *w;
GFile *save_to_file, *tmp_file;
- char *tmp_file_path;
+ char *tmp_file_path, *save_to_file_path;
int ret;
g_return_val_if_fail (EPHY_IS_SESSION (session), FALSE);
@@ -1196,7 +1196,9 @@ ephy_session_save (EphySession *session,
}
save_to_file = get_session_file (filename);
- tmp_file_path = g_strconcat (g_file_get_path (save_to_file), ".tmp", NULL);
+ save_to_file_path = g_file_get_path (save_to_file);
+ tmp_file_path = g_strconcat (save_to_file_path, ".tmp", NULL);
+ g_free (save_to_file_path);
tmp_file = g_file_new_for_path (tmp_file_path);
/* FIXME: do we want to turn on compression? */