summaryrefslogtreecommitdiffstats
path: root/generic/tclOOMethod.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-05-31 22:29:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-05-31 22:29:45 (GMT)
commitd21830d6102251026eb770706ba3319f1cc24755 (patch)
tree6fb5a6887947a5210915f6a1c4699289863db712 /generic/tclOOMethod.c
parentd4816fa0c5eb1cea8d0e924c3187887e2c96cd11 (diff)
downloadtcl-d21830d6102251026eb770706ba3319f1cc24755.zip
tcl-d21830d6102251026eb770706ba3319f1cc24755.tar.gz
tcl-d21830d6102251026eb770706ba3319f1cc24755.tar.bz2
Plug method-related memory leaks pointed out by Miguel.
Diffstat (limited to 'generic/tclOOMethod.c')
-rw-r--r--generic/tclOOMethod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclOOMethod.c b/generic/tclOOMethod.c
index f190533..21e0869 100644
--- a/generic/tclOOMethod.c
+++ b/generic/tclOOMethod.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclOOMethod.c,v 1.1 2008/05/31 11:42:19 dkf Exp $
+ * RCS: @(#) $Id: tclOOMethod.c,v 1.2 2008/05/31 22:29:46 dkf Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -235,7 +235,7 @@ void
TclOODelMethodRef(
Method *mPtr)
{
- if ((mPtr != NULL) && (--mPtr->refCount < 0)) {
+ if ((mPtr != NULL) && (--mPtr->refCount <= 0)) {
if (mPtr->typePtr != NULL && mPtr->typePtr->deleteProc != NULL) {
mPtr->typePtr->deleteProc(mPtr->clientData);
}