From d7fb234f7ce7aefe480b31617e3ad5ff387c7268 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Sun, 12 Nov 2006 16:31:11 +0000 Subject: * hieroglyph/ilist.c (_hg_list_iter_delete_link): fix a memory leak. --- ChangeLog | 2 ++ hieroglyph/ilist.c | 7 +++---- hieroglyph/version.h.in | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87c77d8..f9a4f3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-11-13 Akira TAGOH + * hieroglyph/ilist.c (_hg_list_iter_delete_link): fix a memory leak. + * hieroglyph/scanner.c (_hg_scanner_parse_number): push back a space to deal with it later. diff --git a/hieroglyph/ilist.c b/hieroglyph/ilist.c index d810aba..998d6ae 100644 --- a/hieroglyph/ilist.c +++ b/hieroglyph/ilist.c @@ -397,12 +397,11 @@ _hg_list_iter_delete_link(HgListIter iter) } hg_list_next(iter->current) = NULL; hg_list_previous(iter->current) = NULL; - if (iter->current == next) { - hg_list_free(iter->current); + if (iter->current == next) iter->top = NULL; - } else if (iter->current == iter->top) { + else if (iter->current == iter->top) iter->top = next; - } + hg_list_free(iter->current); list = iter->top; iter->current = prev; diff --git a/hieroglyph/version.h.in b/hieroglyph/version.h.in index 040893c..4ed8cd1 100644 --- a/hieroglyph/version.h.in +++ b/hieroglyph/version.h.in @@ -29,7 +29,7 @@ G_BEGIN_DECLS #define HIEROGLYPH_VERSION "@VERSION@" -#define HIEROGLYPH_UUID "d48d88bb-1761-4dc8-9288-a3e3cac09a79" +#define HIEROGLYPH_UUID "0e700c3b-dbc6-4fa1-b04b-2f39427e1d19" const char *__hg_rcsid G_GNUC_UNUSED = "$Rev$"; -- cgit v1.2.3