From 31088cc13999fc59968843dfa73c5e8e54fcaefc Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 12 Jun 2024 15:44:22 +0200 Subject: [PATCH] Stop timers in destructor. Fix of crash when changing lang. --- src/slic3r/GUI/UserAccountCommunication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/UserAccountCommunication.cpp b/src/slic3r/GUI/UserAccountCommunication.cpp index 9da098a679..29e69aad6c 100644 --- a/src/slic3r/GUI/UserAccountCommunication.cpp +++ b/src/slic3r/GUI/UserAccountCommunication.cpp @@ -182,6 +182,8 @@ UserAccountCommunication::UserAccountCommunication(wxEvtHandler* evt_handler, Ap UserAccountCommunication::~UserAccountCommunication() { + m_token_timer->Stop(); + m_polling_timer->Stop(); if (m_thread.joinable()) { // Stop the worker thread, if running. {