From 7fc7c66ac9798837d85f7e22d7d689258eebe042 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sat, 27 Oct 2007 16:50:11 +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=/branches/gnome-2-20/; revision=2726 --- ChangeLog | 7 +++++++ shell/ev-window.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7901a47e..86a9f1a5 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-24 Carlos Garcia Campos * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_begin), diff --git a/shell/ev-window.c b/shell/ev-window.c index 4690e8b0..3acf2393 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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) { -- 2.47.1