aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-05 13:08:18 -0400
committerGitHub <noreply@github.com>2017-10-05 13:08:18 -0400
commitcec012019f6146b1376bb787dc96b73c7de82266 (patch)
tree383ea29795a696159cc35dfc9b30cfd251742895 /backend/drm/backend.c
parent77eae178c725d13fee4862718af2a3029b128f41 (diff)
parentc5df6ca900cb445b88ede7e0ea3bb3a9042b5b6f (diff)
Merge pull request #208 from versusvoid/memory
Fix memory leaks
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r--backend/drm/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 468fca6e..d7e2e616 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -34,8 +34,8 @@ static void wlr_drm_backend_destroy(struct wlr_backend *backend) {
wlr_output_destroy(&conn->output);
}
- wlr_drm_renderer_finish(&drm->renderer);
wlr_drm_resources_free(drm);
+ wlr_drm_renderer_finish(&drm->renderer);
wlr_session_close_file(drm->session, drm->fd);
wl_event_source_remove(drm->drm_event);
list_free(drm->outputs);