diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-02 23:34:02 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-02 23:34:02 -0400 |
commit | 86b87299986a430a52b4eac3f2e0e7b659176c90 (patch) | |
tree | ac8523d64c6b2faa8d7156093c8dc8f6998301b7 /backend/multi | |
parent | 975b9dc365d5a7bec531522320a1506323575525 (diff) | |
parent | ec11a95d0c945d138cede66b7c6e53e343c82f8f (diff) |
Merge remote-tracking branch 'origin/master' into hidpi
Diffstat (limited to 'backend/multi')
-rw-r--r-- | backend/multi/backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c index a7ee648c..c35303e0 100644 --- a/backend/multi/backend.c +++ b/backend/multi/backend.c @@ -30,8 +30,8 @@ static bool multi_backend_start(struct wlr_backend *_backend) { static void multi_backend_destroy(struct wlr_backend *_backend) { struct wlr_multi_backend *backend = (struct wlr_multi_backend *)_backend; - struct subbackend_state *sub; - wl_list_for_each(sub, &backend->backends, link) { + struct subbackend_state *sub, *next; + wl_list_for_each_safe(sub, next, &backend->backends, link) { wlr_backend_destroy(sub->backend); free(sub); } |