From b9cd56928446803a87cb2b06be8dfd6db04b3d1e Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sat, 29 Oct 2005 09:13:33 +0000 Subject: Fix memory leak. * tiff/tiff-document.c: (tiff_document_load): Fix memory leak. --- (limited to 'tiff') diff --git a/tiff/tiff-document.c b/tiff/tiff-document.c index cb64678..7f27ad6 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 (); -- cgit v0.9.1