summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2005-11-30 14:48:02 (GMT)
committerkennykb <kennykb@noemail.net>2005-11-30 14:48:02 (GMT)
commitc8d8da1b69471d60c2814bf0ea2d35e94433a072 (patch)
tree643c6bfa7a0d6907adccc4fdc41ba055fa0c5844 /generic/tclClock.c
parentc3c3d92132eef6ce3ecb13cd811693118469e75d (diff)
downloadtcl-c8d8da1b69471d60c2814bf0ea2d35e94433a072.zip
tcl-c8d8da1b69471d60c2814bf0ea2d35e94433a072.tar.gz
tcl-c8d8da1b69471d60c2814bf0ea2d35e94433a072.tar.bz2
fixed bad refcount that corrupted heap
FossilOrigin-Name: 5bf471f4fc662cfe63d5bceee79de19dbf633567
Diffstat (limited to 'generic/tclClock.c')
-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);