umat: fix memory leaks
fixed UMat::copyTo(UMat)
Merge pull request #2004 from ilya-lavrenov:tapi_umat_copyto
Merge pull request #1997 from alalek:tapi_fix_memleaks