Skip to content

Commit

Permalink
fix: fix crash issue when call engine.release without call unregister…
Browse files Browse the repository at this point in the history
…Eventhandler first
  • Loading branch information
guoxianzhe committed Mar 11, 2024
1 parent 5311402 commit 15c424c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
api 'io.agora.rtc:full-sdk:4.3.0'
implementation 'io.agora.rtc:full-screen-sharing:4.3.0'
implementation 'io.agora.rtc:iris-rtc:4.3.0-build.2'
implementation 'io.agora.rtc:iris-rtc:4.3.0-build.5'
}

if (isNewArchitectureEnabled()) {
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- AgoraIrisRTC_iOS (4.3.0-build.2)
- AgoraIrisRTC_iOS (4.3.0-build.5)
- AgoraRtcEngine_iOS (4.3.0):
- AgoraRtcEngine_iOS/AIAEC (= 4.3.0)
- AgoraRtcEngine_iOS/AINS (= 4.3.0)
Expand Down Expand Up @@ -407,8 +407,8 @@ PODS:
- React-jsinspector (0.72.10)
- React-logger (0.72.10):
- glog
- react-native-agora (4.2.6):
- AgoraIrisRTC_iOS (= 4.3.0-build.2)
- react-native-agora (4.3.0):
- AgoraIrisRTC_iOS (= 4.3.0-build.5)
- AgoraRtcEngine_iOS (= 4.3.0)
- RCT-Folly (= 2021.07.22.00)
- React-Core
Expand Down Expand Up @@ -747,7 +747,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
AgoraIrisRTC_iOS: 2caf892fa827777fe43b6ac7d12e9b42579eb865
AgoraIrisRTC_iOS: 499d6035bbf912a458bfdef161e9404a3b62cc3c
AgoraRtcEngine_iOS: 267c0980c1fb97e056d05b850f8629b05b6e467a
boost: 7dcd2de282d72e344012f7d6564d024930a6a440
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
Expand Down Expand Up @@ -782,7 +782,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 45ef2ec6dcde31b90469175ec76ddac77b91dfc3
React-jsinspector: de0198127395fec3058140a20c045167f761bb16
React-logger: dc3a2b174d79c2da635059212747d8d929b54e06
react-native-agora: d485857dafe397d26f2ba2355b4b7db98508bc17
react-native-agora: d876ed4bdf5a4813989acc23c0974d4380a51e8b
react-native-agora-rawdata: 097895cdccd8fcf3cff5dffe23372f5d3c89fd31
react-native-image-tools: 88218449791389bbf550a2c475a3b564c8233c8b
react-native-safe-area-context: 7aa8e6d9d0f3100a820efb1a98af68aa747f9284
Expand Down
2 changes: 1 addition & 1 deletion react-native-agora.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Pod::Spec.new do |s|
end

s.dependency 'AgoraRtcEngine_iOS', '4.3.0'
s.dependency 'AgoraIrisRTC_iOS', '4.3.0-build.2'
s.dependency 'AgoraIrisRTC_iOS', '4.3.0-build.5'
s.libraries = 'stdc++'
s.framework = 'ReplayKit'
end
1 change: 1 addition & 0 deletions src/internal/RtcEngineExInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export class RtcEngineExInternal extends IRtcEngineExImpl {
MediaRecorderInternal._observers.clear();
this._h265_transcoder.release();
this.removeAllListeners();
super.unregisterEventHandler(this as IRtcEngineEventHandler);
super.release(sync);
}

Expand Down

0 comments on commit 15c424c

Please sign in to comment.