From: Christian Persch Date: Sun, 15 Feb 2009 13:52:45 +0000 (+0000) Subject: Plug a mem leak. X-Git-Tag: EVINCE_2_25_91~29 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=4fa75bde2ba25552357b5f27099769db89a3394f;p=evince.git Plug a mem leak. * backend/impress/impress-document.c: (impress_document_load): Plug a mem leak. svn path=/trunk/; revision=3451 --- diff --git a/ChangeLog b/ChangeLog index 74a47e2a..64a9a4f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-14 Christian Persch + + * backend/impress/impress-document.c: (impress_document_load): Plug a + mem leak. + 2009-02-14 Christian Persch * backend/impress/impress-document.c: (impress_document_load): Don't diff --git a/backend/impress/impress-document.c b/backend/impress/impress-document.c index 19fb8e3b..46c2cc96 100644 --- a/backend/impress/impress-document.c +++ b/backend/impress/impress-document.c @@ -293,6 +293,7 @@ impress_document_load (EvDocument *document, return FALSE; imp = imp_open (filename, &err); + g_free (filename); if (!imp) { @@ -300,7 +301,6 @@ impress_document_load (EvDocument *document, EV_DOCUMENT_ERROR, EV_DOCUMENT_ERROR_INVALID, _("Invalid document")); - g_free (filename); return FALSE; } impress_document->imp = imp;