ronaldoussoren / pyobjc

The Python <-> Objective-C Bridge with bindings for macOS frameworks
https://pyobjc.readthedocs.io
553 stars 47 forks source link

Use ``__attribute__((cleanup))``? #584

Open ronaldoussoren opened 10 months ago

ronaldoussoren commented 10 months ago

Consider using __attribute__((cleanup)) to simplify cleanup in the C extensions (in particular pyobjc-core). With some luck this simplifies the code base, although care must be taken to ensure cleanup is done at the right time.