fixed error of cvRelease