diff options
author | dgp <dgp@users.sourceforge.net> | 2002-01-04 16:35:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-01-04 16:35:04 (GMT) |
commit | 48c6fa2596567056e76570fccffb1b23e54626b4 (patch) | |
tree | 2a9f7dd8870ac580fda3087921d74e816bb3eaed /generic/tkGrid.c | |
parent | 50551bffcd2004039536f99a2e64481df319a278 (diff) | |
download | tk-48c6fa2596567056e76570fccffb1b23e54626b4.zip tk-48c6fa2596567056e76570fccffb1b23e54626b4.tar.gz tk-48c6fa2596567056e76570fccffb1b23e54626b4.tar.bz2 |
* generic/tkBind.c (TkBindFree):
* generic/tkGrid.c (ResolveConstraints,CheckSlotData,DestroyGrid):
* generic/tkSelect.c (Tk_DeleteSelHandler,TkSelDeadWindow): Replaced
Tcl_Free calls with ckfree so that memory debugging is fully supported.
Diffstat (limited to 'generic/tkGrid.c')
-rw-r--r-- | generic/tkGrid.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c index b9f841a..9b387da 100644 --- a/generic/tkGrid.c +++ b/generic/tkGrid.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: tkGrid.c,v 1.18 2001/11/23 02:04:48 das Exp $ + * RCS: @(#) $Id: tkGrid.c,v 1.19 2002/01/04 16:35:04 dgp Exp $ */ #include "tkInt.h" @@ -1848,7 +1848,7 @@ ResolveConstraints(masterPtr, slotType, maxOffset) UniformGroup *old = uniformGroupPtr; memcpy((VOID *) new, (VOID *) old, oldSize); if (old != uniformPre) { - Tcl_Free((char *) old); + ckfree((char *) old); } uniformGroupPtr = new; uniformGroupsAlloced += UNIFORM_PREALLOC; @@ -1888,7 +1888,7 @@ ResolveConstraints(masterPtr, slotType, maxOffset) } if (uniformGroupPtr != uniformPre) { - Tcl_Free((char *) uniformGroupPtr); + ckfree((char *) uniformGroupPtr); } /* @@ -2074,7 +2074,7 @@ ResolveConstraints(masterPtr, slotType, maxOffset) --layoutPtr; if (layoutPtr != layoutData) { - Tcl_Free((char *)layoutPtr); + ckfree((char *)layoutPtr); } return requiredSize; } @@ -2254,7 +2254,7 @@ CheckSlotData(masterPtr, slot, slotType, checkOnly) masterPtr->masterDataPtr->columnPtr; memcpy((VOID *) new, (VOID *) old, oldSize ); memset((VOID *) (new+numSlot), 0, newSize - oldSize ); - Tcl_Free((char *) old); + ckfree((char *) old); if (slotType == ROW) { masterPtr->masterDataPtr->rowPtr = new ; masterPtr->masterDataPtr->rowSpace = newNumSlot ; @@ -2405,14 +2405,14 @@ DestroyGrid(memPtr) if (gridPtr->masterDataPtr != NULL) { if (gridPtr->masterDataPtr->rowPtr != NULL) { - Tcl_Free((char *) gridPtr->masterDataPtr -> rowPtr); + ckfree((char *) gridPtr->masterDataPtr -> rowPtr); } if (gridPtr->masterDataPtr->columnPtr != NULL) { - Tcl_Free((char *) gridPtr->masterDataPtr -> columnPtr); + ckfree((char *) gridPtr->masterDataPtr -> columnPtr); } - Tcl_Free((char *) gridPtr->masterDataPtr); + ckfree((char *) gridPtr->masterDataPtr); } - Tcl_Free((char *) gridPtr); + ckfree((char *) gridPtr); } /* |