Skip to content

Commit

Permalink
Delete streamsession if it still exists when destroying qmlbackend
Browse files Browse the repository at this point in the history
  • Loading branch information
streetpea committed Nov 16, 2024
1 parent 0f560c9 commit f75ace4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/src/qmlbackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ QmlBackend::QmlBackend(Settings *settings, QmlMainWindow *window)

QmlBackend::~QmlBackend()
{
if(session)
{
chiaki_log_mutex.lock();
chiaki_log_ctx = nullptr;
chiaki_log_mutex.unlock();
delete session;
session = nullptr;
}
frame_thread->quit();
frame_thread->wait();
delete frame_thread->parent();
Expand Down

0 comments on commit f75ace4

Please sign in to comment.