Use g_[s]list_delete_link more.
Review Request #715 — Created June 2, 2021 and submitted
This somewhat reverts some of your previous commits, but should work slightly better. We should have noticed this earlier, of course.
Compile only, no scan-build.