Skip to content
Permalink
Browse files

Fix memory leak in unregister command (#208)

Fixes #198
  • Loading branch information...
JanTuck authored and aikar committed Apr 15, 2019
1 parent 7893ebd commit 4880a0237130b113d57b20598bfd8b498487692f
Showing with 1 addition and 0 deletions.
  1. +1 −0 bukkit/src/main/java/co/aikar/commands/BukkitCommandManager.java
@@ -271,6 +271,7 @@ public void unregisterCommand(BukkitRootCommand command) {
knownCommands.remove(key);
}
knownCommands.remove(plugin + ":" + key);
registeredCommands.remove(key);
}

public void unregisterCommands() {

0 comments on commit 4880a02

Please sign in to comment.
You can’t perform that action at this time.