fix(apple): Fix retain cycle in Log.swift (#7861)

The previous developer introduced a retain cycle in Log.swift by
strongly capturing `self` inside an async closure.
This commit is contained in:
Jamil
2025-01-25 05:27:08 -08:00
committed by GitHub
parent b4a54d9244
commit ae3354402f

View File

@@ -196,6 +196,8 @@ private final class LogWriter {
jsonData.append(newLineData)
workQueue.async { self.handle.write(jsonData) }
workQueue.async { [weak self] in
self?.handle.write(jsonData)
}
}
}