From 79caba8ac19df7d4d788d36e03b9304a023b965e Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sat, 27 Oct 2007 16:48:09 +0000 Subject: [PATCH] Plugged memory leak when help file is not found. Fixes bug #490762. 2007-10-27 Hiroyuki Ikezoe * 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 | 7 +++++++ shell/ev-window.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 707840d4..d18d9ceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-10-27 Hiroyuki Ikezoe + + * 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 * configure.ac: diff --git a/shell/ev-window.c b/shell/ev-window.c index 94477dce..96200fce 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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) { -- 2.43.5