diff options
Diffstat (limited to 'generic/tclOOCall.c')
-rw-r--r-- | generic/tclOOCall.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tclOOCall.c b/generic/tclOOCall.c index e9760f7..e8f9757 100644 --- a/generic/tclOOCall.c +++ b/generic/tclOOCall.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclOOCall.c,v 1.14 2009/07/12 14:51:30 dkf Exp $ + * RCS: @(#) $Id: tclOOCall.c,v 1.15 2009/09/30 03:11:26 dgp Exp $ */ #ifdef HAVE_CONFIG_H @@ -173,9 +173,7 @@ StashCallChain( CallChain *callPtr) { callPtr->refCount++; - if (objPtr->typePtr && objPtr->typePtr->freeIntRepProc) { - objPtr->typePtr->freeIntRepProc(objPtr); - } + TclFreeIntRep(objPtr); objPtr->typePtr = &methodNameType; objPtr->internalRep.otherValuePtr = callPtr; } @@ -956,7 +954,7 @@ TclOOGetCallContext( callPtr->refCount++; goto returnContext; } - cacheInThisObj->typePtr->freeIntRepProc(cacheInThisObj); + FreeMethodNameRep(cacheInThisObj); } if (oPtr->flags & USE_CLASS_CACHE) { |