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

26.memory leaks #27

Merged
merged 4 commits into from
Jul 8, 2017
Merged

Conversation

define-private-public
Copy link
Contributor

this does solve the memory leaks for capture() completely, that's been a little difficult to track down the full culprit, but this does improve them just a tiny bit. I suspect something might be happening with the ffi.cast() calls as well. There could also be something in CFFI itself too.

I also included fixes for get_preview(). I removed it's @exit_after decorator and added a new exit() method that the programmer can call instead to get out of the preview mode.

Version number was also bumped to 0.4.2

@define-private-public
Copy link
Contributor Author

I forgot to move the gp_file_new() method to the constructor. It was unfortunately also causing some leaks. Well, that's fixed now and things should be fine.

Sorry I didn't catch that until now...

Whoops.

@jbaiter jbaiter merged commit 2876d15 into jbaiter:master Jul 8, 2017
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.

2 participants