diff --git a/.pick_status.json b/.pick_status.json index 331ef2be156..fbfc5c5f9c2 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1678,7 +1678,7 @@ "description": "mesa: fix refcnt imbalance related to _mesa_delete_semaphore_object()", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "7b6cd912a59a63e8d479970137b706cb38bede02" }, diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index ed3f7cd07a3..5dac6d558b5 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -754,8 +754,11 @@ void _mesa_delete_semaphore_object(struct gl_context *ctx, struct gl_semaphore_object *semObj) { - if (semObj != &DummySemaphoreObject) + if (semObj != &DummySemaphoreObject) { + struct pipe_context *pipe = ctx->pipe; + pipe->screen->fence_reference(ctx->screen, &semObj->fence, NULL); FREE(semObj); + } } void GLAPIENTRY