Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-02-15 13:52:45 (GMT)
committer Christian Persch <chpe@src.gnome.org>2009-02-15 13:52:45 (GMT)
commit4fa75bde2ba25552357b5f27099769db89a3394f (patch)
treee916fd828bf4daf24a407e894355f814b09c0c2b /backend
parent55dd32230cc49479dd984cf8bbb29256ea945da6 (diff)
Plug a mem leak.
* backend/impress/impress-document.c: (impress_document_load): Plug a mem leak. svn path=/trunk/; revision=3451
Diffstat (limited to 'backend')
-rw-r--r--backend/impress/impress-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/impress/impress-document.c b/backend/impress/impress-document.c
index 19fb8e3..46c2cc9 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;