Fix memory leak in @synchronized.
This was actually a memory leak in the hidden class implementation, but it was mostly visible in the @synchronized implementation. Every hidden class registered a custom .cxx_destruct method, to handle cleanup of all of the hidden class structures. Unfortunately, this destructor failed to delete the reflection metadata structures associated with the class, specifically the objc_method_list containing the objc_method pointing to the destructor itself. Fixes #98main
parent
c5fbeb7287
commit
bd5637af6d
Loading…
Reference in New Issue