fix memory leak in the renderscript compressor