diff options
author | emersion <contact@emersion.fr> | 2017-12-07 00:13:06 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-07 00:13:06 +0100 |
commit | dfe11a2b0ef3806d3c2241e3bc8e69fc93905d8c (patch) | |
tree | 3ded6dd274fa53c0447a9142aee57de7d3f490e5 /rootston | |
parent | aead5019a7075a5823ae7e9255106e666e7b87de (diff) | |
download | wlroots-dfe11a2b0ef3806d3c2241e3bc8e69fc93905d8c.tar.xz |
Add display destroy listener in screenshooter, destroy display in rootston
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/main.c b/rootston/main.c index 46548094..3b65a067 100644 --- a/rootston/main.c +++ b/rootston/main.c @@ -51,6 +51,7 @@ int main(int argc, char **argv) { if (!wlr_backend_start(server.backend)) { wlr_log(L_ERROR, "Failed to start backend"); wlr_backend_destroy(server.backend); + wl_display_destroy(server.wl_display); return 1; } @@ -69,5 +70,6 @@ int main(int argc, char **argv) { wl_display_run(server.wl_display); wlr_backend_destroy(server.backend); + wl_display_destroy(server.wl_display); return 0; } |