Skip to content
Snippets Groups Projects
Commit 51914cd8 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

avmodel: quit all renderers in the avmodel dtor

- this will prevent a crash on quit while the preview renderer is
  still running

Change-Id: I6f0392d0bb7015339bca3f2d3f6261c93efc8bb0
parent 8d94fbbe
Branches
No related tags found
No related merge requests found
......@@ -143,6 +143,10 @@ AVModel::AVModel(const CallbacksHandler& callbacksHandler)
AVModel::~AVModel()
{
std::lock_guard<std::mutex> lk(pimpl_->renderers_mtx_);
for (auto r = pimpl_->renderers_.cbegin(); r != pimpl_->renderers_.cend(); ++r) {
(*r).second->quit();
}
}
bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment