Skip to content

BufferedReader not released #1260

@alisahanyuanyuan

Description

@alisahanyuanyuan

Bug Report

Description of the Bug

In the file WebViewYouTubePlayer.kt, the function readHTMLFromUTF8File has an issue where ​​resources are not properly released​​.

The bufferedReaderis created ​​inside​​ the inputStream.use { ... } code block.
The bufferedReaderis a ​​local variable​​, defined ​​within the scope​​ of the inputStream.use block.
When this code block ends  the variable bufferedReadergoes ​​out of scope​​.
Although bufferedReader will eventually be ​​garbage collected​​ after going out of scope, it is ​​not explicitly closed​​ while it is still in use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions