diff options
author | Xan Lopez <xan@gnome.org> | 2010-10-10 21:49:33 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-10-10 21:49:33 +0800 |
commit | 3f63ae1f5c5726446b6f1e6ee3dc2bfbe05f75f9 (patch) | |
tree | f412cef98d5313e5e9eec52e3334c95e6a7396d3 /src/ephy-session.c | |
parent | 2ca51b4db7d1df89873cfd79875e7f69625cf867 (diff) | |
download | gsoc2013-epiphany-3f63ae1f5c5726446b6f1e6ee3dc2bfbe05f75f9.tar.gz gsoc2013-epiphany-3f63ae1f5c5726446b6f1e6ee3dc2bfbe05f75f9.tar.zst gsoc2013-epiphany-3f63ae1f5c5726446b6f1e6ee3dc2bfbe05f75f9.zip |
ephy-session: plug memory leaks
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r-- | 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 558793c6f..3688afc44 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); |