fixed memory leaks in warpAffine tests
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Sat, 15 Aug 2015 07:11:52 +0000 (10:11 +0300)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Thu, 17 Sep 2015 10:36:35 +0000 (13:36 +0300)
(cherry picked from commit b70e27e076a7eea6a1ccc6bb5f367e539e1aa51c)

modules/imgproc/test/test_imgwarp.cpp

index 705bf0a..99cffbc 100644 (file)
@@ -1426,6 +1426,9 @@ TEST(Imgproc_cvWarpAffine, regression)
     int h = src->height;
     cv2DRotationMatrix(cvPoint2D32f(w*0.5f, h*0.5f), 45.0, 1.0, &M);
     cvWarpAffine(src, dst, &M);
+
+    cvReleaseImage(&src);
+    cvReleaseImage(&dst);
 }
 
 TEST(Imgproc_fitLine_vector_3d, regression)