summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-16 09:11:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-16 09:11:09 (GMT)
commit56b804fc38c52b9fda67fb0a23ecc0e0c877ac1a (patch)
tree1269b5882faad0d7af891f9b10d78175ae594462 /generic/tclLiteral.c
parent30a4dc04bbc9ad806cf6db118a7bb831803e078c (diff)
parente7e4c74b7fb66e778876342cd605a50caee31646 (diff)
downloadtcl-56b804fc38c52b9fda67fb0a23ecc0e0c877ac1a.zip
tcl-56b804fc38c52b9fda67fb0a23ecc0e0c877ac1a.tar.gz
tcl-56b804fc38c52b9fda67fb0a23ecc0e0c877ac1a.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclLiteral.c')
-rw-r--r--generic/tclLiteral.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c
index 718abce..f96fb6d 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.c
@@ -234,7 +234,6 @@ TclCreateLiteral(
*/
TclNewObj(objPtr);
- Tcl_IncrRefCount(objPtr);
if ((flags & LITERAL_ON_HEAP)) {
objPtr->bytes = (char *) bytes;
objPtr->length = length;
@@ -261,6 +260,7 @@ TclCreateLiteral(
globalPtr = ckalloc(sizeof(LiteralEntry));
globalPtr->objPtr = objPtr;
+ Tcl_IncrRefCount(objPtr);
globalPtr->refCount = 1;
globalPtr->nsPtr = nsPtr;
globalPtr->nextPtr = globalTablePtr->buckets[globalHash];