diff options
Diffstat (limited to 'recipes-graphics/userland/files/0006-zero-out-wl-buffers-in-egl_surface_free.patch')
-rw-r--r-- | recipes-graphics/userland/files/0006-zero-out-wl-buffers-in-egl_surface_free.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-graphics/userland/files/0006-zero-out-wl-buffers-in-egl_surface_free.patch b/recipes-graphics/userland/files/0006-zero-out-wl-buffers-in-egl_surface_free.patch new file mode 100644 index 0000000..43eb7f0 --- /dev/null +++ b/recipes-graphics/userland/files/0006-zero-out-wl-buffers-in-egl_surface_free.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 0d678cd2042551cc4e26ec42fa3aba7c72d033b4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 6 Feb 2016 11:10:47 -0800 | ||
4 | Subject: [PATCH 06/16] zero-out wl buffers in egl_surface_free | ||
5 | |||
6 | origins from buildroot | ||
7 | |||
8 | Signed-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 | |||
13 | diff --git a/interface/khronos/egl/egl_client_surface.c b/interface/khronos/egl/egl_client_surface.c | ||
14 | index 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 | } | ||
31 | -- | ||
32 | 2.16.1 | ||
33 | |||