]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Fix memory leak
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 6 Nov 2009 12:40:06 +0000 (13:40 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 6 Nov 2009 12:40:06 +0000 (13:40 +0100)
shell/ev-window.c

index 54be8b7abc84a3ad4e4dad002a94ab7ca73b46f4..bbf2f24064a81c3c7c8446039612b132df2d685d 100644 (file)
@@ -1722,6 +1722,7 @@ ev_window_load_file_remote (EvWindow *ev_window,
                 g_free (base_name);
 
                 tmp_file = ev_mkstemp_file (template, &err);
+               g_free (template);
                 if (tmp_file == NULL) {
                         ev_window_error_message (ev_window, err,
                                                  "%s", _("Failed to load remote file."));