fix memory leak for Mat::getUMat() operation
Merge pull request #2279 from alalek:fix_memory_leak_getumat