fix crash

This commit is contained in:
Danmei Chen 2020-02-28 15:40:12 +01:00
parent 84e71bddb0
commit 9ae49edc66

View file

@ -88,14 +88,6 @@ import AVFoundation
}
}
static func releaseAppData(sCall:Call) {
let data = getAppData(sCall: sCall)
if (data != nil) {
Unmanaged.passRetained(data!).release()
sCall.userData = nil
}
}
@objc func findCall(callId: String?) -> OpaquePointer? {
let call = callByCallId(callId: callId)
return call?.getCobject
@ -446,7 +438,7 @@ class CoreManager: CoreDelegate {
}
break
case .Released:
CallManager.releaseAppData(sCall: call)
call.userData = nil
break
default:
break