Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this page for instructions on how to get full permissions. Sorry for the inconvenience.
source.puri.sm will be down starting March 18, 6:00 UTC, for a server migration. We expect the migration to take up to 4 hours.
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.
This also uses g_clear_pointer()
where possible to simplify the code.
CC @exalm