mirror of
https://github.com/alexhopeoconnor/DFTE.git
synced 2026-10-14 16:11:29 +10:00
Fix iterator cleanup and configuration guidance
This commit is contained in:
@@ -12,7 +12,19 @@ DeviceFrameworkTemplateContext::DeviceFrameworkTemplateContext()
|
||||
}
|
||||
}
|
||||
|
||||
DeviceFrameworkTemplateContext::~DeviceFrameworkTemplateContext() {
|
||||
while (renderingDepth > 0) {
|
||||
popContext();
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceFrameworkTemplateContext::reset() {
|
||||
// An interrupted render may own an iterator handle. Pop through the stack
|
||||
// before overwriting it so every descriptor receives its close callback.
|
||||
while (renderingDepth > 0) {
|
||||
popContext();
|
||||
}
|
||||
|
||||
state = TemplateRenderState::TEXT;
|
||||
renderingDepth = 0;
|
||||
placeholderPos = 0;
|
||||
|
||||
Reference in New Issue
Block a user