Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the not-increasing memory leak in openExr. #228

Closed
wants to merge 1 commit into from
Closed

Conversation

h-schoenberger
Copy link

Developers have to call staticUninitialize(); at the end of their application.

Developers have to call staticUninitialize(); at the end of their application.
@kdt3rd
Copy link
Contributor

kdt3rd commented Jul 29, 2018

fyi, this will be obsolete if we switch the entire tree to c++11, the initializer I put in there when compiling w/ c++11 will auto-clean this up.

barring that, I would prefer something like an atexit-type solution, either via the constructor/destructor attributes that gcc and llvm provide, or their equivalent under win32.

With a staticUninitialize type method, there needs to be reference counting and a hope that everyone calls initialize equally that is linked against the .so to avoid dangling references to attributes if one plugin uses the same .so and has a different dlopen/close lifetime than another consumer of this stuff.

@cary-ilm cary-ilm added the Bug A bug in the source code label Jun 19, 2019
@kdt3rd
Copy link
Contributor

kdt3rd commented Jul 21, 2019

This is fixed for c++11 and beyond, which we now require by default

@kdt3rd kdt3rd closed this Jul 21, 2019
@cary-ilm cary-ilm modified the milestone: v2.4.0 Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants