Fix a possible crash caused by a use-after-free in some rare cases when closing a connection tab.
Fix a possible crash caused by a use-after-free in some rare cases when closing a connection tab.

chenbk85/sequelpro,Jellyfrog/sequelpro,abhibeckert/sequelpro,leichunxin/sequelpro,abhibeckert/sequelpro,abhibeckert/sequelpro,chenbk85/sequelpro,kaneshin/sequelpro,Jellyfrog/sequelpro,eric-seekas/sequelpro,dnl-jst/sequelpro,CoolSwitcher/sequelpro,dnl-jst/sequelpro,kaneshin/sequelpro,leichunxin/sequelpro,eric-seekas/sequelpro,eric-seekas/sequelpro,Jellyfrog/sequelpro,josegonzalez/sequelpro,kaneshin/sequelpro,chenbk85/sequelpro,dnl-jst/sequelpro,chenbk85/sequelpro,leichunxin/sequelpro,treejames/sequelpro,Jellyfrog/sequelpro,treejames/sequelpro,leichunxin/sequelpro,treejames/sequelpro,josegonzalez/sequelpro,CoolSwitcher/sequelpro,eric-seekas/sequelpro,abhibeckert/sequelpro,josegonzalez/sequelpro,CoolSwitcher/sequelpro,kaneshin/sequelpro,josegonzalez/sequelpro,dnl-jst/sequelpro,CoolSwitcher/sequelpro,treejames/sequelpro