Options: fix memory leaks (#928)

This commit is contained in:
slprime authored and GitHub committed 2026-05-06 22:36:07 +02:00
1 parent 2104184077
commit 41554f4c5b
13 files changed
+31 -21

No files matched your search

@@ -85,7 +85,7 @@ public class OptionKeyBind extends OptionButton {
return false;
}
for (Option o : slot.options) {
for (Option o : getSlot().options) {
if (o instanceof OptionKeyBind && o != this && ((OptionKeyBind) o).getValue() == keyboard) {
return true;
}