From 9929cb612e9e18a27aa67914550ec48915bc9ddf Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 14 May 2007 11:16:52 +0000 Subject: [PATCH] (free_plist): Unref also nested plist. --- src/plist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plist.c b/src/plist.c index 8cda7b9..d04325a 100644 --- a/src/plist.c +++ b/src/plist.c @@ -129,7 +129,9 @@ free_plist (void *object) do { MPlist *next = plist->next; - if (MPLIST_KEY (plist) != Mnil && MPLIST_KEY (plist)->managing_key) + if (MPLIST_KEY (plist) != Mnil + && (MPLIST_KEY (plist)->managing_key + || MPLIST_NESTED_P (plist))) M17N_OBJECT_UNREF (MPLIST_VAL (plist)); M17N_OBJECT_UNREGISTER (plist_table, plist); free (plist); -- 1.7.10.4