mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Add display destroy listener in screenshooter, destroy display in rootston
This commit is contained in:
parent
aead5019a7
commit
dfe11a2b0e
3 changed files with 49 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue