From 460af4151d3cf4ee42a69ca166555b2e17bb73a8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 1 Oct 2011 20:45:38 -0700 Subject: * filter.c (filters, filter_init): Serious gc bug fixed: neglected to inform the garbage collector about the filters global variable. Ouch! --- ChangeLog | 6 ++++++ filter.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3f5fb6eb..ac300d0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-10-01 Kaz Kylheku + + * filter.c (filters, filter_init): Serious gc bug fixed: neglected to + inform the garbage collector about the filters global variable. + Ouch! + 2011-10-01 Kaz Kylheku New test case under tests/008. diff --git a/filter.c b/filter.c index db298da6..bf20cffb 100644 --- a/filter.c +++ b/filter.c @@ -542,6 +542,8 @@ val filter_k, to_html_k, from_html_k; void filter_init(void) { + protect(&filters, (val *) 0); + filters = make_hash(nil, nil); filter_k = intern(lit("filter"), keyword_package); to_html_k = intern(lit("to_html"), keyword_package); -- cgit v1.2.3