Unregister destroyed ElementLogComplete and WindowLog

This commit is contained in:
Jindrich Makovicka
2026-06-04 21:05:18 +02:00
committed by Jari Sundell
parent efe258a137
commit 578fe03ad6
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ WindowLog::WindowLog(torrent::log_buffer* l) :
}
WindowLog::~WindowLog() {
m_log->lock_and_set_update_slot(nullptr);
torrent::this_thread::scheduler()->erase(&m_task_update);
}
+4
View File
@@ -26,6 +26,10 @@ ElementLogComplete::ElementLogComplete(torrent::log_buffer* l) :
});
}
ElementLogComplete::~ElementLogComplete() {
m_log->lock_and_set_update_slot(nullptr);
}
void
ElementLogComplete::activate(display::Frame* frame, [[maybe_unused]] bool focus) {
if (is_active())
+1
View File
@@ -18,6 +18,7 @@ public:
typedef display::WindowLogComplete WLogComplete;
ElementLogComplete(torrent::log_buffer* l);
virtual ~ElementLogComplete();
void activate(display::Frame* frame, bool focus = true);
void disable();