projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837dfab
)
(free_plist): Unref also nested plist.
author
handa
<handa>
Mon, 14 May 2007 11:16:52 +0000
(11:16 +0000)
committer
handa
<handa>
Mon, 14 May 2007 11:16:52 +0000
(11:16 +0000)
src/plist.c
patch
|
blob
|
history
diff --git
a/src/plist.c
b/src/plist.c
index
8cda7b9
..
d04325a
100644
(file)
--- 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);