mirror of
https://github.com/textmate/textmate.git
synced 2026-01-15 01:38:02 -05:00
On 10.12 beta 3, when closing a window, the following exception is thrown: Exception Name: NSInternalInconsistencyException Description: <GutterView 0x7fa71c511150> has reached dealloc but still has a super view. Super views strongly reference there children, so this is being over-released, or has been over-released in the past. Despite the mention of our GutterView instance being over-released, the actual problem is that we do not call super in our override of `removeFromSuperView`, where we nil out our partner view. A simple fix to avoid crashing would be just calling super in that method so that the view is marked as being removed; however, we can simplify the code and eliminate the need to override our super's method by using a weak reference instead and let ARC automatically handle the zeroing of our partner view.