Skip to content

ImageInput close/dtr leaving files open fixes#581

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:masterfrom
lgritz:lg-close
Apr 25, 2013
Merged

ImageInput close/dtr leaving files open fixes#581
lgritz merged 1 commit intoAcademySoftwareFoundation:masterfrom
lgritz:lg-close

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Apr 23, 2013

  • For a couple formats, the ImageInput dtr didn't automatcially close() the
    file if it was still open.
  • For a couple formats, a redundant call to close() might have strange
    effects because it didn't double check that the file was open.

I'm pretty sure that the docs don't say anything that would guarantee that the ImageInput dtr will close a file if still opened (without an explicit call to close by the app). But almost all of them did call close automatically upon destruction. This just fixes the few that did not.

* For a couple formats, the ImageInput dtr didn't automatcially close() the
  file if it was still open.
* For a couple formats, a redundant call to close() might have strange
  effects because it didn't double check that the file was open.
@lgritz lgritz merged commit efdc057 into AcademySoftwareFoundation:master Apr 25, 2013
GerHobbelt pushed a commit to GerHobbelt/oiio that referenced this pull request Dec 10, 2024
…one) (AcademySoftwareFoundation#581)




* Fix some spelling and format issues with comments.
Add consistency to how LUT is spelled.
"OCIO configuration" or ".ocio configuration file"

* Fixing function parameters alignment
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.

1 participant