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

Improved resource releasing #71

Merged
merged 12 commits into from
Feb 25, 2020
Merged

Improved resource releasing #71

merged 12 commits into from
Feb 25, 2020

Conversation

simogasp
Copy link
Member

@simogasp simogasp commented Feb 4, 2020

As per #70, it introduces a state attribute _isInit in the class PopSift so that the uninit() method to release the resources can be called explicitly or in the destructor of the class at the end of the object scope.

the uninit() method is also replicated inside the class Pipe to release the relevant resources.

Incidentally, using nullptr instead of 0

closes #70

@simogasp simogasp added this to the v1.0.0 milestone Feb 4, 2020
@simogasp simogasp self-assigned this Feb 4, 2020
src/popsift/popsift.h Outdated Show resolved Hide resolved
@simogasp simogasp marked this pull request as ready for review February 9, 2020 22:31
@simogasp simogasp changed the title [WIP] Improved resource releasing Improved resource releasing Feb 9, 2020
src/popsift/popsift.h Outdated Show resolved Hide resolved
src/popsift/popsift.h Outdated Show resolved Hide resolved
Copy link
Member

@griwodz griwodz left a comment

Choose a reason for hiding this comment

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

I support this PR.

@simogasp simogasp merged commit 3e624d2 into develop Feb 25, 2020
@simogasp simogasp deleted the dev/autoUninit branch February 25, 2020 14:20
simogasp added a commit to alicevision/AliceVision that referenced this pull request Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better handle the release of resources
3 participants