diff --git a/libweston/content-protection.c b/libweston/content-protection.c index 98b93fc0f..32dc3f065 100644 --- a/libweston/content-protection.c +++ b/libweston/content-protection.c @@ -190,6 +190,7 @@ cp_destroy_listener(struct wl_listener *listener, void *data) weston_log_scope_destroy(cp->debug); cp->debug = NULL; cp->surface_protection_update = NULL; + cp->compositor->content_protection = NULL; free(cp); }