From: Hiroyuki Ikezoe Date: Sat, 27 Oct 2007 16:48:09 +0000 (+0000) Subject: Plugged memory leak when help file is not found. Fixes bug #490762. X-Git-Tag: EVINCE_2_21_1~29 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;ds=sidebyside;h=79caba8ac19df7d4d788d36e03b9304a023b965e;p=evince.git 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 --- 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) {