[epiphany] ephy-session: plug memory leaks



commit 3f63ae1f5c5726446b6f1e6ee3dc2bfbe05f75f9
Author: Xan Lopez <xan gnome org>
Date:   Sun Oct 10 22:49:33 2010 +0900

    ephy-session: plug memory leaks

 src/ephy-session.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 558793c..3688afc 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -375,6 +375,7 @@ session_delete (EphySession *session,
 	file = get_session_file (filename);
 
 	g_file_delete (file, NULL, NULL);
+	g_object_unref (file);
 }
 
 static void
@@ -523,6 +524,7 @@ session_command_autoresume (EphySession *session,
 
 	saved_session_file = get_session_file (SESSION_CRASHED);
 	saved_session_file_path = g_file_get_path (saved_session_file);
+	g_object_unref (saved_session_file);
 	crashed_session = g_file_test (saved_session_file_path, G_FILE_TEST_EXISTS);
 	
 	g_free (saved_session_file_path);
@@ -1596,6 +1598,7 @@ ephy_session_load (EphySession *session,
 
 	save_to_file = get_session_file (filename);
 	save_to_path = g_file_get_path (save_to_file);
+	g_object_unref (save_to_file);
 
 	doc = xmlParseFile (save_to_path);
 	g_free (save_to_path);



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