summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-11-30 14:48:03 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-11-30 14:48:03 (GMT)
commitc3ae410bfd9c50b4b93c65bb20d96aca055c8c81 (patch)
tree643c6bfa7a0d6907adccc4fdc41ba055fa0c5844 /generic
parentc474eb0cfebfaf5706ed2396bea6b5cb7b9437d9 (diff)
downloadtcl-c3ae410bfd9c50b4b93c65bb20d96aca055c8c81.zip
tcl-c3ae410bfd9c50b4b93c65bb20d96aca055c8c81.tar.gz
tcl-c3ae410bfd9c50b4b93c65bb20d96aca055c8c81.tar.bz2
fixed bad refcount that corrupted heap
Diffstat (limited to 'generic')
-rw-r--r--generic/tclClock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 3dc93fa..a52ca26 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclClock.c,v 1.43 2005/11/29 22:50:58 kennykb Exp $
+ * RCS: @(#) $Id: tclClock.c,v 1.44 2005/11/30 14:48:04 kennykb Exp $
*/
#include "tclInt.h"
@@ -233,6 +233,7 @@ TclClockInit(
Tcl_CreateObjCommand(interp, "::tcl::clock::ConvertLocalToUTC",
ClockConvertlocaltoutcObjCmd, (ClientData) data,
ClockDeleteCmdProc);
+ ++data->refCount;
Tcl_CreateObjCommand(interp, "::tcl::clock::GetDateFields",
ClockGetdatefieldsObjCmd,(ClientData) data,
ClockDeleteCmdProc);