mirror of
https://github.com/textmate/textmate.git
synced 2026-01-14 17:28:05 -05:00
If one event cycle triggered multiple re-layouts, we could end up reusing a tab bar view that had been removed from its superview because the weak pointer had not yet been cleared (as the view hadn’t yet been fully released). This could happen during window construction in a scenario like this: 1. Window gets created at some size, tab bar views are created 2. Window size gets restored causing some tab bar views to be removed 3. Active tab gets restored bringing an overflow tab into the visible area, re-using a removed view