AgoraIO-Extensions / iris_method_channel_flutter

iris_method_channel is a method channel that communicate between C/C++(iris) and dart, which is used by Agora Flutter SDKs.
MIT License
2 stars 3 forks source link

fix: fix memeory leak if Dart_PostCObject_DL failed to send the message #42

Closed littleGnAl closed 1 year ago

littleGnAl commented 1 year ago

We pass the buffers as Dart_CObject_kExternalTypedData to dart, the buffers need to be free if failed to send. see https://github.com/dart-lang/sdk/issues/47270