summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2004-06-09 19:18:13 (GMT)
committerdkf <dkf@noemail.net>2004-06-09 19:18:13 (GMT)
commit42d280db6bedc7414ab883c2fb6b8071f24d3d24 (patch)
tree11d1099d9182e3d5219252fcaede194285caaf3c /generic
parentf0962df406fd8320cf0c7e97b43d7bab7db2b9b6 (diff)
downloadtk-42d280db6bedc7414ab883c2fb6b8071f24d3d24.zip
tk-42d280db6bedc7414ab883c2fb6b8071f24d3d24.tar.gz
tk-42d280db6bedc7414ab883c2fb6b8071f24d3d24.tar.bz2
ckfree() the correct element! [Bug 969358]
FossilOrigin-Name: 49fffd59faca8ea6bd9e8e4fc7f139799ca4fa4e
Diffstat (limited to 'generic')
-rw-r--r--generic/tkUndo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkUndo.c b/generic/tkUndo.c
index 64143f1..a1f5284 100644
--- a/generic/tkUndo.c
+++ b/generic/tkUndo.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: tkUndo.c,v 1.3 2003/10/30 23:35:14 dkf Exp $
+ * RCS: @(#) $Id: tkUndo.c,v 1.4 2004/06/09 19:18:14 dkf Exp $
*/
#include "tkUndo.h"
@@ -249,7 +249,7 @@ TkUndoSetDepth(stack, maxdepth)
while (elem != NULL) {
prevelem = elem;
elem = elem->next;
- ckfree((char *) elem);
+ ckfree((char *) prevelem);
}
stack->depth = stack->maxdepth;
}