From 7a6df850c5777c737bccb1f841fad6076cbb0a99 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 14 Jun 2017 13:22:46 -0700 Subject: [PATCH] Fix crash on exit when tablet is open --- interface/src/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 9ce6cc9b25..56e8c8e2fb 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1721,6 +1721,10 @@ void Application::cleanupBeforeQuit() { // Cleanup all overlays after the scripts, as scripts might add more _overlays.cleanupAllOverlays(); + // The cleanup process enqueues the transactions but does not process them. Calling this here will force the actual + // removal of the items. + // See https://highfidelity.fogbugz.com/f/cases/5328 + _main3DScene->processTransactionQueue(); // first stop all timers directly or by invokeMethod // depending on what thread they run in