summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-12-15 11:51:00 (GMT)
committervincentdarley <vincentdarley>2003-12-15 11:51:00 (GMT)
commit6b97ba2c3cc4da8e29a95fc694baea3b57cf8018 (patch)
tree14cd813c65ebd93c03478077ca270e6f1623d234 /generic/tkTextIndex.c
parent652fc56a55bca6e89050af3ef1fc758070a43b0e (diff)
downloadtk-6b97ba2c3cc4da8e29a95fc694baea3b57cf8018.zip
tk-6b97ba2c3cc4da8e29a95fc694baea3b57cf8018.tar.gz
tk-6b97ba2c3cc4da8e29a95fc694baea3b57cf8018.tar.bz2
text widget more extensive documentation, and two small code improvements
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index c270320..667cb64 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextIndex.c,v 1.12 2003/11/12 17:19:18 vincentdarley Exp $
+ * RCS: @(#) $Id: tkTextIndex.c,v 1.13 2003/12/15 11:51:06 vincentdarley Exp $
*/
#include "default.h"
@@ -1473,6 +1473,7 @@ TkTextIndexForwChars(textPtr, srcPtr, charCount, dstPtr, type)
}
forwardCharDone:
if (infoPtr != NULL) {
+ TkTextFreeElideInfo(infoPtr);
ckfree((char*) infoPtr);
}
}
@@ -1662,6 +1663,7 @@ TkTextIndexCount(textPtr, indexPtr1, indexPtr2, type)
}
countDone:
if (infoPtr != NULL) {
+ TkTextFreeElideInfo(infoPtr);
ckfree((char*) infoPtr);
}
return count;
@@ -1920,6 +1922,7 @@ TkTextIndexBackChars(textPtr, srcPtr, charCount, dstPtr, type)
}
backwadCharDone:
if (infoPtr != NULL) {
+ TkTextFreeElideInfo(infoPtr);
ckfree((char*) infoPtr);
}
}