Rename view's free callback to destroy

This commit is contained in:
Ryan Dwyer 2018-06-26 13:18:33 +10:00
parent 7a922c65aa
commit 50190bc760
5 changed files with 9 additions and 9 deletions

View file

@ -51,8 +51,8 @@ void view_free(struct sway_view *view) {
wlr_texture_destroy(view->marks_unfocused);
wlr_texture_destroy(view->marks_urgent);
if (view->impl->free) {
view->impl->free(view);
if (view->impl->destroy) {
view->impl->destroy(view);
} else {
free(view);
}