engine: Give vars reasonable names, remove useless `g_*list_free`s.

Also removes a couple of trailing whitespaces and fixes a minor memleak.