Memory leak found in package class when loading resource files