From 2de400a541fead618a670d0e096367817de36082 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 22 Dec 2020 19:53:33 +0100 Subject: backend/drm: assert connector state after wlr_output_destroy --- backend/drm/drm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 5bdb326e..d1e6cc5d 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1558,6 +1558,8 @@ static void disconnect_drm_connector(struct wlr_drm_connector *conn) { // This will cleanup the compositor-facing wlr_output, but won't destroy // our wlr_drm_connector. wlr_output_destroy(&conn->output); + + assert(conn->state == WLR_DRM_CONN_DISCONNECTED); } void destroy_drm_connector(struct wlr_drm_connector *conn) { -- cgit v1.2.3