RE: wined3d: fix a memory leak and a performance regression in gen_arbfp_ffp_shader