From deacab87e4ba7fe09f0f16568dc2848949f2707a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 14 Sep 2012 17:01:13 +0100 Subject: [PATCH] sna/dri: flip->next_front.bo is owned by the DRI drawable not by the flip Be careful not to delete the reference we presume we hold as it is borrowed from the DRI drawable. Signed-off-by: Chris Wilson --- src/sna/sna_dri.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index d6cc2aa4..b1fba200 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -941,9 +941,6 @@ sna_dri_frame_event_info_free(struct sna *sna, if (info->old_front.bo) kgem_bo_destroy(&sna->kgem, info->old_front.bo); - if (info->next_front.bo) - kgem_bo_destroy(&sna->kgem, info->next_front.bo); - if (info->cache.bo) kgem_bo_destroy(&sna->kgem, info->cache.bo); @@ -1431,7 +1428,6 @@ static void sna_dri_flip_event(struct sna *sna, flip->cache = flip->old_front; flip->old_front = flip->next_front; - flip->next_front.bo = NULL; flip->count = sna_page_flip(sna, get_private(flip->front)->bo, @@ -1457,8 +1453,6 @@ static void sna_dri_flip_event(struct sna *sna, sna->dri.flip_pending = flip; } else { finish_async_flip: - flip->next_front.bo = NULL; - DBG(("%s: async flip completed\n", __FUNCTION__)); sna_dri_frame_event_info_free(sna, draw, flip); }