Fix off by one error in refcount implementation for arrow

This commit is contained in:
Eric Soroos 2025-05-11 23:46:21 +02:00
parent 339bc5db93
commit b6ce5af466

View File

@ -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;
}