Fix another minor memleak

This is untested as I don't have a camera handy to run that code. No
risk, no fun.