[PATCH 1/2] rpi: Remove dangling reference to weston_view

Tomeu Vizoso tomeu at tomeuvizoso.net
Fri Oct 25 10:34:37 CEST 2013


This also marks the rpir_view for destroy in rpi_renderer_finish_frame()
---
 src/rpi-renderer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c
index 812e6e7..7f79410 100644
--- a/src/rpi-renderer.c
+++ b/src/rpi-renderer.c
@@ -1501,6 +1501,8 @@ rpi_renderer_destroy_view(struct weston_view *base)
 	if (!view)
 		return;
 
+	view->view = NULL;
+
 	/* If guaranteed to not be on screen, just detroy it. */
 	if (wl_list_empty(&view->link))
 		rpir_view_destroy(view);
-- 
1.8.3.1



More information about the wayland-devel mailing list