diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-02 12:54:33 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-02 12:54:33 +0000 |
commit | de81475355220cd15315b1eb9c0a33ce571ac512 (patch) | |
tree | 8fbf9592beb0a0a290b0ebaf537f2d2654031ee5 /mdoc.c | |
parent | 869286ca79b58cee9a78aae60175b751a96ea4ea (diff) | |
download | mandoc-de81475355220cd15315b1eb9c0a33ce571ac512.tar.gz |
Stash `Bf' parameters into struct mdoc_bf.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -518,12 +518,21 @@ static void mdoc_node_free(struct mdoc_node *p) { + /* + * XXX: if these end up being problematic in terms of memory + * management and dereferencing freed blocks, then make them + * into reference-counted double-pointers. + */ + if (MDOC_Bd == p->tok && MDOC_BLOCK == p->type) if (p->data.Bd) free(p->data.Bd); if (MDOC_Bl == p->tok && MDOC_BLOCK == p->type) if (p->data.Bl) free(p->data.Bl); + if (MDOC_Bf == p->tok && MDOC_HEAD == p->type) + if (p->data.Bf) + free(p->data.Bf); if (p->string) free(p->string); |