mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-24 21:17:02 +03:00
Fix off by one error in refcount implementation for arrow
This commit is contained in:
parent
339bc5db93
commit
b6ce5af466
|
@ -302,7 +302,7 @@ ImagingDelete(Imaging im) {
|
|||
MUTEX_LOCK(&im->mutex);
|
||||
im->refcount--;
|
||||
|
||||
if (im->refcount > 0) {
|
||||
if (im->refcount > 1) {
|
||||
MUTEX_UNLOCK(&im->mutex);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user