Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
tp_destroy_tap(tp);
tp_destroy_buttons(tp);
- if (tp->filter)
- tp->filter->interface->destroy(tp->filter);
+ motion_filter_destroy(tp->filter);
free(tp->touches);
free(tp);
}
return &filter->base;
}
+
+void
+motion_filter_destroy(struct motion_filter *filter)
+{
+ if (!filter)
+ return;
+
+ filter->interface->destroy(filter);
+}
struct motion_filter *
create_pointer_accelator_filter(accel_profile_func_t filter);
+void
+motion_filter_destroy(struct motion_filter *filter);
+
#endif /* FILTER_H */