swipe-tracker: Fix a leak in hdy_swipe_tracker_confirm_swipe()
- Feb 14, 2020
-
-
Adrien Plazas authored
The swipe tracker takes ownership of the heap-allocated snap points in hdy_swipe_tracker_confirm_swipe(), but if any of the preconditions fail the function would return without freeing that memory. This uses an auto cleanup function to handle these many cases automatically.
03bd1145 -
Adrien Plazas authoredf42e6dd8
-