From 699b570aa571b288dcb6532518dc8194ed0b70ec Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Sat, 20 Apr 2013 19:55:13 +0900 Subject: [PATCH] (cos_release_symbol): Add check for builtin symbols. --- symbol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/symbol.c b/symbol.c index bf6f2ce..e2d82fd 100644 --- a/symbol.c +++ b/symbol.c @@ -84,6 +84,9 @@ cos_release_symbol (COS_Object obj) if (obj == NULL) return 0; + if ( (obj == cos_Qnil) || (obj == cos_Qt) ) + return 0; + if ( ((COS_Symbol)obj)->value != NULL) cos_release_object (((COS_Symbol)obj)->value); -- 1.7.10.4