mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
Unregister destroyed ElementLogComplete and WindowLog
This commit is contained in:
committed by
Jari Sundell
parent
efe258a137
commit
578fe03ad6
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user