diff --git a/src/com/redstoner/misc/mysql/Config.java b/src/com/redstoner/misc/mysql/Config.java index d403c7b..519b20a 100644 --- a/src/com/redstoner/misc/mysql/Config.java +++ b/src/com/redstoner/misc/mysql/Config.java @@ -66,7 +66,9 @@ public class Config private JSONObject loadConfig(File file) throws IOException, ParseException { FileReader reader = new FileReader(file); - return (JSONObject) parser.parse(reader); + JSONObject object = (JSONObject) parser.parse(reader); + reader.close(); + return object; } @Override