summaryrefslogtreecommitdiffstats
path: root/generic/tkGC.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-08 12:02:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-08 12:02:25 (GMT)
commit147082b028ee8e566257822d195e675deff06bd7 (patch)
treeffde95ad464de4ef43e56a81ddd11193eb229a84 /generic/tkGC.c
parentc0c63d71f6326616741160c579c69136b6010dd8 (diff)
downloadtk-147082b028ee8e566257822d195e675deff06bd7.zip
tk-147082b028ee8e566257822d195e675deff06bd7.tar.gz
tk-147082b028ee8e566257822d195e675deff06bd7.tar.bz2
Remove calls to Tk_FreeXId(), since it's just a NOP.
Diffstat (limited to 'generic/tkGC.c')
-rw-r--r--generic/tkGC.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/generic/tkGC.c b/generic/tkGC.c
index 5663ede..c424e30 100644
--- a/generic/tkGC.c
+++ b/generic/tkGC.c
@@ -314,7 +314,6 @@ Tk_FreeGC(
gcPtr = Tcl_GetHashValue(idHashPtr);
gcPtr->refCount--;
if (gcPtr->refCount == 0) {
- Tk_FreeXId(gcPtr->display, (XID) XGContextFromGC(gcPtr->gc));
XFreeGC(gcPtr->display, gcPtr->gc);
Tcl_DeleteHashEntry(gcPtr->valueHashPtr);
Tcl_DeleteHashEntry(idHashPtr);
@@ -351,12 +350,6 @@ TkGCCleanup(
entryPtr != NULL; entryPtr = Tcl_NextHashEntry(&search)) {
gcPtr = Tcl_GetHashValue(entryPtr);
- /*
- * This call is not needed, as it is only used on Unix to restore the
- * Id to the stack pool, and we don't want to use them anymore.
- * Tk_FreeXId(gcPtr->display, (XID) XGContextFromGC(gcPtr->gc));
- */
-
XFreeGC(gcPtr->display, gcPtr->gc);
Tcl_DeleteHashEntry(gcPtr->valueHashPtr);
Tcl_DeleteHashEntry(entryPtr);