Skip to content
  • Adrien Plazas's avatar
    swipe-tracker: Fix a leak in …_confirm_swipe() · 03bd1145
    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