Describe the bug
A bit of a weird one here: if you popup a split, drag that split into another window, then close the popup window, a crash occurs.
To reproduce
Screenshots

Chatterino version
Chatterino Nightly 2.2.3-beta2 (commit 9ebc448bc, ) (self-built)
Chatterino Nightly 2.2.3-beta2 (commit 05aab8684, 22.11.2020)
Operating system
Windows 10 20H2 (OS Build 10942.662)
Additional information
This crash seems to appear in a few different places in code depending on the timing, but these are the two I've been able to capture trying to repro while filing this issue.



Cannot reproduce: Windows 10 20H2 | commit a79081f44
Can reproduce, looking into this now
@sando Could you please try this PR out to see if it fixes your issue? https://github.com/Chatterino/chatterino2/pull/2259
Can confirm #2259 fixes the issue. Tried the above example and a few other combinations of manipulating splits across windows, no crashes. :)
Most helpful comment
Can confirm #2259 fixes the issue. Tried the above example and a few other combinations of manipulating splits across windows, no crashes. :)