summaryrefslogtreecommitdiffstats
path: root/generic/tclIOGT.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-07-02 08:17:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-07-02 08:17:50 (GMT)
commit4cd9155ae918a63f1c940a9557bf9ab4afd4a333 (patch)
tree9b1ff6ff3db457ec452f61ebcb38c942c259dc7d /generic/tclIOGT.c
parent0918bf8c7b999500650bd3294ab8d257975247bd (diff)
downloadtcl-4cd9155ae918a63f1c940a9557bf9ab4afd4a333.zip
tcl-4cd9155ae918a63f1c940a9557bf9ab4afd4a333.tar.gz
tcl-4cd9155ae918a63f1c940a9557bf9ab4afd4a333.tar.bz2
Another round of refCount consistancy improvements.
Diffstat (limited to 'generic/tclIOGT.c')
-rw-r--r--generic/tclIOGT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOGT.c b/generic/tclIOGT.c
index 58d1a22..c1ce485 100644
--- a/generic/tclIOGT.c
+++ b/generic/tclIOGT.c
@@ -225,7 +225,7 @@ static void
ReleaseData(
TransformChannelData *dataPtr)
{
- if (--dataPtr->refCount) {
+ if (dataPtr->refCount-- > 1) {
return;
}
ResultClear(&dataPtr->result);
@@ -683,7 +683,7 @@ TransformInputProc(
* Already saw EOF from downChan; don't ask again.
* NOTE: Could move this up to avoid the last maxRead
* execution. Believe this would still be correct behavior,
- * but the test suite tests the whole command callback
+ * but the test suite tests the whole command callback
* sequence, so leave it unchanged for now.
*/