epiphany r8745 - trunk/src



Author: xan
Date: Fri Jan 30 14:51:22 2009
New Revision: 8745
URL: http://svn.gnome.org/viewvc/epiphany?rev=8745&view=rev

Log:
ephy-session: plug memory leak.

Modified:
   trunk/src/ephy-session.c

Modified: trunk/src/ephy-session.c
==============================================================================
--- trunk/src/ephy-session.c	(original)
+++ trunk/src/ephy-session.c	Fri Jan 30 14:51:22 2009
@@ -1175,7 +1175,7 @@
 	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 @@
 	}
 
 	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? */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]