]> 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:48:09 +0000 (16:48 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 27 Oct 2007 16:48:09 +0000 (16:48 +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=/trunk/; revision=2725

ChangeLog
shell/ev-window.c

index 707840d4b2ca1d5c225f72aaa86a915424497efc..d18d9ceb167e78ee6eeac6263d63ea568add7cfb 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-26  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * configure.ac:
index 94477dcef67931447c7ded4b50ac9c96b35518e9..96200fce702d20a7cca4ba83ce054fde43b93952 100644 (file)
@@ -3259,6 +3259,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) {