Significant sprite packing memory leak fixes

additional thanks to GlFolker for reporting issues with undisposed content icon pixmaps
This commit is contained in:
Anuken
2024-03-03 14:19:27 -05:00
parent bb909ab6fb
commit ac15b94978
7 changed files with 23 additions and 3 deletions
@@ -177,6 +177,7 @@ public class Floor extends Block{
}
packer.add(PageType.environment, name + "-edge", result);
result.dispose();
}
@Override
@@ -69,6 +69,8 @@ public class OreBlock extends OverlayFloor{
packer.add(PageType.editor, "editor-block-" + name + "-full", image);
packer.add(PageType.main, "block-" + name + "-full", image);
}
image.dispose();
}
}