From: Nickolay V. Shmyrev Date: Sat, 29 Oct 2005 09:13:33 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: EVINCE_0_5_0~97 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b9cd56928446803a87cb2b06be8dfd6db04b3d1e;p=evince.git Fix memory leak. * tiff/tiff-document.c: (tiff_document_load): Fix memory leak. --- diff --git a/ChangeLog b/ChangeLog index 10bfd1a4..a5f05664 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-29 Bastien Nocera + + * tiff/tiff-document.c: (tiff_document_load): + + Fix memory leak. + 2005-10-29 Nickolay V. Shmyrev * po/POTFILES.in: diff --git a/tiff/tiff-document.c b/tiff/tiff-document.c index cb64678b..7f27ad60 100644 --- a/tiff/tiff-document.c +++ b/tiff/tiff-document.c @@ -93,7 +93,6 @@ tiff_document_load (EvDocument *document, TIFF *tiff; push_handlers (); - /* FIXME: We could actually load uris */ filename = g_filename_from_uri (uri, NULL, error); if (!filename) { @@ -116,6 +115,7 @@ tiff_document_load (EvDocument *document, } tiff_document->tiff = tiff; g_free (tiff_document->uri); + g_free (filename); tiff_document->uri = g_strdup (uri); pop_handlers ();