gallium: fix some texture object leaks