From 17d2168b6ee0fa3e3fa2d39c43c178f158db2078 Mon Sep 17 00:00:00 2001 From: Justin Blanchard Date: Wed, 15 Aug 2007 16:50:54 +0000 Subject: [PATCH] Fixes memory leak in djvu backend. 2007-08-15 Justin Blanchard * backend/djvu/djvu-document.c: (djvu_document_finalize): Fixes memory leak in djvu backend. svn path=/trunk/; revision=2625 --- ChangeLog | 6 ++++++ backend/djvu/djvu-document.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6268fcf2..e34dc751 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-15 Justin Blanchard + + * backend/djvu/djvu-document.c: (djvu_document_finalize): + + Fixes memory leak in djvu backend. + 2007-08-15 Andreas Nilsson * data/icons/32x32/Makefile.am: diff --git a/backend/djvu/djvu-document.c b/backend/djvu/djvu-document.c index 9b4ba825..046228dc 100644 --- a/backend/djvu/djvu-document.c +++ b/backend/djvu/djvu-document.c @@ -289,6 +289,9 @@ djvu_document_finalize (GObject *object) { DjvuDocument *djvu_document = DJVU_DOCUMENT (object); + if (djvu_document->search) + djvu_text_free (djvu_document->search); + if (djvu_document->d_document) ddjvu_document_release (djvu_document->d_document); -- 2.43.5