diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-08-05 19:49:34 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-08-06 15:53:41 +1200 |
commit | 2f8b5c4448a5df9eda773ece10f4e20195679eaa (patch) | |
tree | a033548b849c47438e8634540ee1dd911ea2ae57 /backend/drm/backend.c | |
parent | dd7a3492958d2e97de185abf2539b78131cab548 (diff) |
More cleanups
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r-- | backend/drm/backend.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index ea14d41c..dde34003 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -32,6 +32,7 @@ static void wlr_drm_backend_destroy(struct wlr_backend_state *drm) { wlr_udev_signal_remove(drm->udev, &drm->drm_invalidated); wlr_drm_renderer_free(&drm->renderer); + wlr_drm_resources_free(drm); wlr_session_close_file(drm->session, drm->fd); wl_event_source_remove(drm->drm_event); free(drm); @@ -55,11 +56,6 @@ static void session_signal(struct wl_listener *listener, void *data) { } } else { wlr_log(L_INFO, "DRM fd paused"); - - for (size_t i = 0; i < drm->outputs->length; ++i) { - struct wlr_output_state *output = drm->outputs->items[i]; - wlr_drm_output_pause_renderer(output); - } } } |