summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-09 16:06:05 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-09 16:06:05 (GMT)
commit9ce794ad641a7d75cf89e89cdc7f4da8e5293031 (patch)
treee268cc2a40eaa4173ec3982dca0e11fed39bb227 /macosx
parente7c8688438f4de50bacba0220fb7a4fb9b5fd0ed (diff)
downloadtk-9ce794ad641a7d75cf89e89cdc7f4da8e5293031.zip
tk-9ce794ad641a7d75cf89e89cdc7f4da8e5293031.tar.gz
tk-9ce794ad641a7d75cf89e89cdc7f4da8e5293031.tar.bz2
Fix [9b74a906e2]: Aqua: leak in Tk_FreePixmap(). Patch from Christopher Chavez.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXSubwindows.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index b73729e..6d3bfc7 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -1483,11 +1483,7 @@ Tk_FreePixmap(
if (data) {
ckfree(data);
}
- /*
- * Releasing the context here causes a crash in the 8.7 regression
- * tests, but not in 8.6.
- * CFRelease(macPix->context);
- */
+ CFRelease(macPix->context);
}
ckfree(macPix);
}