Skip to content

Fixed file lock leaks in GLSLLoader.#738

Merged
shadowislord merged 1 commit into
jMonkeyEngine:masterfrom
JavaSaBr:fixed_file_look_leaks
Sep 21, 2017
Merged

Fixed file lock leaks in GLSLLoader.#738
shadowislord merged 1 commit into
jMonkeyEngine:masterfrom
JavaSaBr:fixed_file_look_leaks

Conversation

@JavaSaBr
Copy link
Copy Markdown
Contributor

@JavaSaBr JavaSaBr commented Sep 19, 2017

We didn't close readers of shader streams in the GLSLLoader. It provided some file lock leaks and then I couldn't change these files on windows without restarting jME application.

@JavaSaBr
Copy link
Copy Markdown
Contributor Author

@Nehon I don't use Windows OS, but this problem came from some users of my editor, in the case with game application it isn't the important problem, but I think we need to fix it :)

@JavaSaBr JavaSaBr changed the title Fixed file look leaks in GLSLLoader. Fixed file lock leaks in GLSLLoader. Sep 19, 2017
Copy link
Copy Markdown
Contributor

@Nehon Nehon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I agree on this one. Also the try with ressource is more elegant.

@shadowislord shadowislord merged commit 66137d5 into jMonkeyEngine:master Sep 21, 2017
MeFisto94 pushed a commit to MeFisto94/jmonkeyengine that referenced this pull request Dec 1, 2017
MeFisto94 pushed a commit to MeFisto94/jmonkeyengine that referenced this pull request Dec 1, 2017
@JavaSaBr JavaSaBr deleted the fixed_file_look_leaks branch January 23, 2018 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants