]> www.fi.muni.cz Git - evince.git/commitdiff
Plugged memory leak when help file is not found. Fixes bug #490762.
authorHiroyuki Ikezoe <poincare@ikezoe.net>
Sat, 27 Oct 2007 16:50:11 +0000 (16:50 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 27 Oct 2007 16:50:11 +0000 (16:50 +0000)
2007-10-27  Hiroyuki Ikezoe  <poincare@ikezoe.net>
* shell/ev-window.c: (ev_window_cmd_help_contents):
Plugged memory leak when help file is not found. Fixes bug
#490762.

svn path=/branches/gnome-2-20/; revision=2726

ChangeLog
shell/ev-window.c

index 7901a47e4b82bb6b9bcce32ee88092ece7d543d3..86a9f1a508cac06c1e436caa27d96dd79d2c822b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-27  Hiroyuki Ikezoe  <poincare@ikezoe.net>
+
+       * shell/ev-window.c: (ev_window_cmd_help_contents):
+
+       Plugged memory leak when help file is not found. Fixes bug
+       #490762.
+       
 2007-10-24  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin),
index 4690e8b031b33af6917afdae9f7b47da6ff37464..3acf2393ecdd9f1c307c1cc4848a3afb4d25631a 100644 (file)
@@ -3309,6 +3309,8 @@ ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
                if (g_file_test (uri, G_FILE_TEST_EXISTS)) {
                        break;
                }
+               g_free (uri);
+               uri = NULL;
        }
 
        if (uri == NULL) {