diff --git a/frontend/document/koptinterface.lua b/frontend/document/koptinterface.lua index 268ef0abf..cbece893c 100644 --- a/frontend/document/koptinterface.lua +++ b/frontend/document/koptinterface.lua @@ -23,6 +23,7 @@ local ContextCacheItem = CacheItem:new{} function ContextCacheItem:onFree() if self.kctx.free then + KoptInterface:waitForContext(self.kctx) DEBUG("free koptcontext", self.kctx) self.kctx:free() end