|
|
@ -14,11 +14,7 @@ void wlr_pointer_init(struct wlr_pointer *pointer,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void wlr_pointer_destroy(struct wlr_pointer *pointer) {
|
|
|
|
void wlr_pointer_destroy(struct wlr_pointer *pointer) {
|
|
|
|
if (!pointer) {
|
|
|
|
if (pointer && pointer->impl && pointer->impl->destroy) {
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (pointer->impl && pointer->impl->destroy) {
|
|
|
|
|
|
|
|
pointer->impl->destroy(pointer);
|
|
|
|
pointer->impl->destroy(pointer);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
free(pointer);
|
|
|
|
free(pointer);
|
|
|
|