rootston: add destroy to view interface

This commit is contained in:
emersion 2018-03-12 09:17:06 +01:00
parent 1f8854f217
commit 6ac3534df6
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 59 additions and 33 deletions

View file

@ -422,6 +422,10 @@ void view_destroy(struct roots_view *view) {
wl_signal_emit(&view->events.destroy, view);
if (view->destroy) {
view->destroy(view);
}
free(view);
}