Merge "libcopybit: Fix potential memory and surface leaks in c2d"