From 7cf75b269ee5f7f72d37d4aeabe45f83e26e55e6 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 11 Aug 2016 07:53:51 -0400 Subject: [PATCH] evas-gl-drm: Don't release gbm buffer twice Not sure how this got in there, but it looks like gbm_surface_release_buffer was being called twice on the same buffer. This should sort out the double-free mentioned in ref T4335 Signed-off-by: Chris Michael --- src/modules/evas/engines/gl_drm/evas_outbuf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c index ad3f2a0414..cbeae57797 100644 --- a/src/modules/evas/engines/gl_drm/evas_outbuf.c +++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c @@ -155,8 +155,6 @@ _evas_outbuf_buffer_swap(Outbuf *ob, Eina_Rectangle *rects, unsigned int count) { Ecore_Drm2_Fb *fb; - if (ob->priv.bo[1]) gbm_surface_release_buffer(ob->surface, ob->priv.bo[1]); - /* Repulsive hack: Right now we don't actually have a proper way to retire * buffers because the ticker and the flip handler are out of sync, the * flip handler is per output, fbs are submit to multiple outputs and may