Fix multiple resource leaks by closing InputStream instances
The main fix is in BuiltInsPackageFragment, the rest is the improvement of other usages of getResourceAsStream #KT-11433 Fixed
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ abstract class DeserializedPackageFragment(
|
||||
fqName: FqName,
|
||||
protected val storageManager: StorageManager,
|
||||
module: ModuleDescriptor,
|
||||
protected val loadResource: (path: String) -> InputStream?
|
||||
private val loadResource: (path: String) -> InputStream?
|
||||
) : PackageFragmentDescriptorImpl(module, fqName) {
|
||||
// component dependency cycle
|
||||
@set:Inject
|
||||
|
||||
Reference in New Issue
Block a user