From e16a64a67defea597d80459747fa2e725f074243 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 4 Sep 2021 16:18:35 +0000 Subject: [PATCH] fb_pool: Fix reference counting error --- src/fb_pool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fb_pool.c b/src/fb_pool.c index 1f86e01..c4089ba 100644 --- a/src/fb_pool.c +++ b/src/fb_pool.c @@ -132,6 +132,8 @@ static struct nvnc_fb* nvnc_fb_pool__acquire_from_list(struct nvnc_fb_pool* self TAILQ_REMOVE(&self->fbs, item, link); free(item); + nvnc_fb_pool_ref(self); + return fb; }