mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): properly destroy entities in manager cleanup
This commit is contained in:
parent
52e9f43c46
commit
ceb8cbf59e
@ -605,6 +605,16 @@ export class CanvasManager {
|
|||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
this.log.debug('Cleaning up konva renderer');
|
this.log.debug('Cleaning up konva renderer');
|
||||||
|
this.inpaintMask.destroy();
|
||||||
|
for (const region of this.regions.values()) {
|
||||||
|
region.destroy();
|
||||||
|
}
|
||||||
|
for (const layer of this.layers.values()) {
|
||||||
|
layer.destroy();
|
||||||
|
}
|
||||||
|
for (const controlAdapter of this.controlAdapters.values()) {
|
||||||
|
controlAdapter.destroy();
|
||||||
|
}
|
||||||
unsubscribeRenderer();
|
unsubscribeRenderer();
|
||||||
unsubscribeListeners();
|
unsubscribeListeners();
|
||||||
unsubscribeShouldShowStagedImage();
|
unsubscribeShouldShowStagedImage();
|
||||||
|
Loading…
Reference in New Issue
Block a user