blob: 690d51dafeb307124624494caaea1033d90fc384 [file] [log] [blame]
Andrew Geissler5d59ec72020-07-24 16:09:26 -05001From ce90048cb25a0c2c49c585ce3a4cd8c73a8ff55b Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Feb 2016 11:10:47 -0800
Andrew Geissler5d59ec72020-07-24 16:09:26 -05004Subject: [PATCH 06/21] zero-out wl buffers in egl_surface_free
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6origins from buildroot
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 interface/khronos/egl/egl_client_surface.c | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/interface/khronos/egl/egl_client_surface.c b/interface/khronos/egl/egl_client_surface.c
14index 42350bf..1f923d9 100644
15--- a/interface/khronos/egl/egl_client_surface.c
16+++ b/interface/khronos/egl/egl_client_surface.c
17@@ -690,11 +690,13 @@ void egl_surface_free(EGL_SURFACE_T *surface)
18 if (surface->back_wl_buffer) {
19 wl_buffer_destroy(surface->back_wl_buffer->wl_buffer);
20 free(surface->back_wl_buffer);
21+ surface->back_wl_buffer = 0;
22 }
23
24 if (surface->front_wl_buffer) {
25 wl_buffer_destroy(surface->front_wl_buffer->wl_buffer);
26 free(surface->front_wl_buffer);
27+ surface->front_wl_buffer = 0;
28 }
29 #endif
30 }
Andrew Geissler5d59ec72020-07-24 16:09:26 -050031--
322.27.0
33