Release transformed_image when done
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 14 Sep 2013 15:33:39 +0000 (17:33 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 14 Sep 2013 15:33:39 +0000 (17:33 +0200)
perspective-transform/opencv-perspective-transform.c

index fd78c36..270f7f3 100644 (file)
@@ -109,6 +109,7 @@ int main(int argc, char *argv[])
 
        ret = 0;
 
 
        ret = 0;
 
+       cvReleaseImage(&transformed_image);
 out_release_mat:
        cvReleaseMat(&perspective_matrix);
 out_destroy_window:
 out_release_mat:
        cvReleaseMat(&perspective_matrix);
 out_destroy_window: