mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-25 05:26:57 +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);
|
MUTEX_LOCK(&im->mutex);
|
||||||
im->refcount--;
|
im->refcount--;
|
||||||
|
|
||||||
if (im->refcount > 0) {
|
if (im->refcount > 1) {
|
||||||
MUTEX_UNLOCK(&im->mutex);
|
MUTEX_UNLOCK(&im->mutex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user