Significant sprite packing memory leak fixes
additional thanks to GlFolker for reporting issues with undisposed content icon pixmaps
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user