Skip to content

Commit

Permalink
Fix memory leak in unregister command (#208)
Browse files Browse the repository at this point in the history
Fixes #198
  • Loading branch information
JanTuck authored and aikar committed Apr 15, 2019
1 parent 7893ebd commit 4880a02
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ public void unregisterCommand(BukkitRootCommand command) {
knownCommands.remove(key); knownCommands.remove(key);
} }
knownCommands.remove(plugin + ":" + key); knownCommands.remove(plugin + ":" + key);
registeredCommands.remove(key);
} }


public void unregisterCommands() { public void unregisterCommands() {
Expand Down

0 comments on commit 4880a02

Please sign in to comment.