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

Get rid of double-delete bug #1

Merged
merged 5 commits into from
Mar 7, 2013
Merged

Get rid of double-delete bug #1

merged 5 commits into from
Mar 7, 2013

Conversation

maghoff
Copy link

@maghoff maghoff commented Mar 7, 2013

Image::unload used to be unusable, because inevitably the wrapped dib would be double-deleted in Image::~Image, for example as the garbage collector runs.

This patch set fixes this bug by making sure to set the internally stored dib value to NULL as soon as it is deleted in Image::unload.

@eendeego
Copy link
Owner

eendeego commented Mar 7, 2013

LGTM, but the original project was created by @mikeseven.

Do you want to take ownership of this ? A npm module would be awesome!

I was looking forward to clean out this code or create a new-from-scratch module.

In the meantime, I'll be merging these changes.

eendeego added a commit that referenced this pull request Mar 7, 2013
Get rid of double-delete bug
@eendeego eendeego merged commit e10ecf5 into eendeego:master Mar 7, 2013
@maghoff
Copy link
Author

maghoff commented Mar 11, 2013

I agree we need a proper module for this, and I guess I am in good company when I say I don't have time to take ownership right now :(

Thanks for pulling, though :)

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