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

Fix "Fatal Python error: UNREF invalid object" in debug builds #1936

Merged
merged 2 commits into from
Jun 8, 2016

Conversation

wiredfool
Copy link
Member

@wiredfool wiredfool commented May 30, 2016

PyObject_Del() should only be called on the self object in a dealloc call, not after failing to make a new object. Replace with Py_DECREF, which eventually calls PyObject_Del()

http://bugs.python.org/issue3299#msg78740
https://mail.python.org/pipermail/python-dev/2003-February/033258.html

PyObject_Del() should only be called on the self object in
a dealloc call, not after failing to make a new object.
Replace with Py_DECREF, which eventually calls PyObject_Del()

http://bugs.python.org/issue3299#msg78740
https://mail.python.org/pipermail/python-dev/2003-February/033258.html
@wiredfool wiredfool changed the title Fix Fatal Python error: UNREF invalid object in debug builds Fix "Fatal Python error: UNREF invalid object" in debug builds May 30, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 72c45e6 on wiredfool:unref_error into * on python-pillow:master*.

@coveralls
Copy link

coveralls commented May 30, 2016

Coverage Status

Changes Unknown when pulling ffb6196 on wiredfool:unref_error into * on python-pillow:master*.

@wiredfool wiredfool merged commit a83ae6c into python-pillow:master Jun 8, 2016
@wiredfool wiredfool deleted the unref_error branch October 2, 2017 13:28
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