diff --git a/src/avmodel.cpp b/src/avmodel.cpp
index 4a28fe589fbb878cf246a83873e8c0062dbb1e62..b099d403a28be67ce6a21df4cc2c190106e84293 100644
--- a/src/avmodel.cpp
+++ b/src/avmodel.cpp
@@ -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