mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
SettingsCache owns the stable and beta update channels as raw pointers, and each owns a QNetworkAccessManager, so the process leaves QtNetwork objects alive past QApplication teardown. Delete them from a QCoreApplication::aboutToQuit handler instead of the destructor: SettingsCache is a Q_GLOBAL_STATIC, so ~SettingsCache() runs during static teardown, after QApplication is gone, and destroying the network managers at that point is the post-application window that ASan reports. The hook is installed on the first instance() call that has an application object, since the first access may predate it. |
||
|---|---|---|
| .. | ||
| crash | ||
| network | ||
| settings | ||
| lag_monitor.cpp | ||
| lag_monitor.h | ||
| latency_graph_widget.cpp | ||
| latency_graph_widget.h | ||
| latency_status_widget.cpp | ||
| latency_status_widget.h | ||
| sound_engine.cpp | ||
| sound_engine.h | ||
| url_scheme_event_filter.h | ||