mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
impr: Improve situation where ImHex crashes on exit when resources aren't cleared properly
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include <hex/ui/toast.hpp>
|
||||
#include <hex/helpers/auto_reset.hpp>
|
||||
|
||||
namespace hex::impl {
|
||||
|
||||
[[nodiscard]] std::list<std::unique_ptr<ToastBase>> &ToastBase::getQueuedToasts() {
|
||||
static std::list<std::unique_ptr<ToastBase>> queuedToasts;
|
||||
static AutoReset<std::list<std::unique_ptr<ToastBase>>> queuedToasts;
|
||||
|
||||
return queuedToasts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user