summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-06-30 21:41:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-06-30 21:41:18 (GMT)
commit27ce2290a6e107aa7e2b8a5995fa32e32106546c (patch)
treed4a008c1cca0c1d8fb3f5fc7c741217ebb7534be /generic/tclCompile.c
parentc2ea0fbc1bd362371328c20f5408e45ec4f7770c (diff)
downloadtcl-27ce2290a6e107aa7e2b8a5995fa32e32106546c.zip
tcl-27ce2290a6e107aa7e2b8a5995fa32e32106546c.tar.gz
tcl-27ce2290a6e107aa7e2b8a5995fa32e32106546c.tar.bz2
Consistancy in refcount management.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index a552f39..98756ea 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -978,7 +978,7 @@ FreeByteCodeInternalRep(
register ByteCode *codePtr = objPtr->internalRep.twoPtrValue.ptr1;
objPtr->typePtr = NULL;
- if (codePtr->refCount-- < 2) {
+ if (codePtr->refCount-- <= 1) {
TclCleanupByteCode(codePtr);
}
}
@@ -1364,7 +1364,7 @@ FreeSubstCodeInternalRep(
register ByteCode *codePtr = objPtr->internalRep.twoPtrValue.ptr1;
objPtr->typePtr = NULL;
- if (codePtr->refCount-- < 2) {
+ if (codePtr->refCount-- <= 1) {
TclCleanupByteCode(codePtr);
}
}