Skip to content

Improved resource releasing#71

Merged
simogasp merged 12 commits intodevelopfrom
dev/autoUninit
Feb 25, 2020
Merged

Improved resource releasing#71
simogasp merged 12 commits intodevelopfrom
dev/autoUninit

Conversation

@simogasp
Copy link
Copy Markdown
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
Comment thread src/popsift/popsift.cpp
Comment thread src/popsift/popsift.cpp Outdated
Comment thread src/popsift/popsift.h Outdated
@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
Comment thread src/popsift/popsift.h Outdated
Comment thread src/popsift/popsift.h Outdated
Copy link
Copy Markdown
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