Fix Riot Client crash when cancelling CFHost resolution

This commit is contained in:
Hitalo M. authored and Kalah committed 2026-10-16 09:09:28 +02:00
1 parent 07c3d09bcc
commit 67626612ac
9 files changed
+112 -2

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
diff --git a/src/Host/CFHost.c b/src/Host/CFHost.c
index 91c0d0f..d6e3daf 100644
--- a/src/Host/CFHost.c
+++ b/src/Host/CFHost.c
@@ -2221,9 +2221,9 @@ CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) {
CFRunLoopSourceContext ctxt = {
0, // version
- NULL, // info
- NULL, // retain
- NULL, // release
+ host, // info
+ CFRetain, // retain
+ CFRelease, // release
NULL, // copyDescription
NULL, // equal
NULL, // hash