From: MORIOKA Tomohiko Date: Sat, 20 Apr 2013 10:55:13 +0000 (+0900) Subject: (cos_release_symbol): Add check for builtin symbols. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=699b570aa571b288dcb6532518dc8194ed0b70ec;p=chise%2Fconcord.git (cos_release_symbol): Add check for builtin symbols. --- 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);