We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4a0626 commit 4f52fe2Copy full SHA for 4f52fe2
src/lib.rs
@@ -123,6 +123,9 @@ impl Isolate {
123
let result = func(self.port, ptr);
124
// free the object
125
let boxed_obj = Box::from_raw(ptr);
126
+ if !result && boxed_obj.ty == DartCObjectType::DartExternalTypedData {
127
+ (boxed_obj.value.as_external_typed_data.callback)(boxed_obj.value.as_external_typed_data.data as *mut c_void, boxed_obj.value.as_external_typed_data.peer);
128
+ }
129
drop(boxed_obj);
130
// I like that dance haha
131
result
0 commit comments