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

Do not call g_object_unref when imageType comes out as UNKNOWN. #107

Merged
merged 1 commit into from Oct 23, 2014

Conversation

papandreou
Copy link
Contributor

Avoids "(sharp:23220): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed" dumped to the console when an unsupported or invalid image is loaded.

Avoids "(sharp:23220): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed" dumped to the console when an unsupported or invalid image is loaded.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 005c628 on papandreou:doNotUnrefUnparsableImages into 49b44d8 on lovell:master.

@lovell
Copy link
Owner

lovell commented Oct 23, 2014

Thank you!

lovell added a commit that referenced this pull request Oct 23, 2014
Do not call g_object_unref when imageType comes out as UNKNOWN.
@lovell lovell merged commit 3e1be7a into lovell:master Oct 23, 2014
@papandreou
Copy link
Contributor Author

Hmm, on Debian Wheezy this actually prevents a segfault. Any chance of an npm release soon?

@lovell
Copy link
Owner

lovell commented Oct 28, 2014

@papandreou will release v0.7.1 with this fix later today, thanks for the reminder!

@lovell
Copy link
Owner

lovell commented Oct 28, 2014

0.7.1 now available via npm.

@papandreou
Copy link
Contributor Author

Thanks a bunch -- that helped :)

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.

None yet

3 participants