mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
Simplify tablet pad destruction
This commit is contained in:
parent
aa20634309
commit
7d0bf9a1a7
1 changed files with 1 additions and 5 deletions
|
|
@ -13,11 +13,7 @@ void wlr_tablet_pad_init(struct wlr_tablet_pad *pad,
|
|||
}
|
||||
|
||||
void wlr_tablet_pad_destroy(struct wlr_tablet_pad *pad) {
|
||||
if (!pad) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (pad->impl && pad->impl->destroy) {
|
||||
if (pad && pad->impl && pad->impl->destroy) {
|
||||
pad->impl->destroy(pad);
|
||||
} else {
|
||||
free(pad);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue