diff options
author | Akira TAGOH <akira@tagoh.org> | 2006-11-12 16:31:11 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2006-11-12 16:31:11 +0000 |
commit | d7fb234f7ce7aefe480b31617e3ad5ff387c7268 (patch) | |
tree | 4cbf3d4612524b341829da9cf14b793e74dbf94d | |
parent | 974a84b3fc23c23b19a908f55e694a73c2dfea98 (diff) |
* hieroglyph/ilist.c (_hg_list_iter_delete_link): fix a memory leak.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | hieroglyph/ilist.c | 7 | ||||
-rw-r--r-- | hieroglyph/version.h.in | 2 |
3 files changed, 6 insertions, 5 deletions
@@ -1,5 +1,7 @@ 2006-11-13 Akira TAGOH <at@gclab.org> + * 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$"; |