summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 13:26:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 13:26:07 (GMT)
commit1ab87b68045ba6b3538301fd0d976bf4fbdd5d46 (patch)
treeab3c6a6ad2dc835eadc656e230140f5e13aefed0
parentac77633a254c2a5bb52de4db50df963c652d9705 (diff)
downloadtk-1ab87b68045ba6b3538301fd0d976bf4fbdd5d46.zip
tk-1ab87b68045ba6b3538301fd0d976bf4fbdd5d46.tar.gz
tk-1ab87b68045ba6b3538301fd0d976bf4fbdd5d46.tar.bz2
Two times Tcl_Free() -> ckfree()
-rw-r--r--generic/ttk/ttkTreeview.c2
-rw-r--r--unix/tkUnixWm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index b1739b6..cda98a0 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -1066,7 +1066,7 @@ static void TreeviewCleanup(void *recordPtr)
TreeviewFreeColumns(tv);
if (tv->tree.displayColumns)
- Tcl_Free((ClientData)tv->tree.displayColumns);
+ ckfree((ClientData)tv->tree.displayColumns);
foreachHashEntry(&tv->tree.items, FreeItemCB);
Tcl_DeleteHashTable(&tv->tree.items);
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index 9ed9082..7b69713 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -2444,7 +2444,7 @@ WmIconphotoCmd(
for (i = 3 + isDefault; i < objc; i++) {
photo = Tk_FindPhoto(interp, Tcl_GetString(objv[i]));
if (photo == NULL) {
- Tcl_Free((char *) iconPropertyData);
+ ckfree((char *) iconPropertyData);
return TCL_ERROR;
}
Tk_PhotoGetSize(photo, &width, &height);