-
Notifications
You must be signed in to change notification settings - Fork 70
How we pass a function into objc2? #758
Copy link
Copy link
Closed
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themI-unsoundA soundness hole, or affecting soundnessA soundness hole, or affecting soundnessbugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themI-unsoundA soundness hole, or affecting soundnessA soundness hole, or affecting soundnessbugSomething isn't workingSomething isn't working
I am currently using
objc2_core_mediato construct a CMSampleBuffer. However, I cannot figure out how to pass a "c-unwind" ABI style function into objc2 function.For example, the following code compiles but it segfaults when the newly constructed CMBlockBuffer goes out of scope.
Note that the
free_blockdoes not being called as well. Am I missing something on this?