mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Rename view's free callback to destroy
This commit is contained in:
parent
7a922c65aa
commit
50190bc760
5 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue