From: Antonio Ospite Date: Sat, 14 Sep 2013 15:33:39 +0000 (+0200) Subject: Release transformed_image when done X-Git-Url: https://git.ao2.it/experiments/opencv.git/commitdiff_plain/91e80547a853d92b2ab039c49a15e70aecea04ed?ds=sidebyside Release transformed_image when done --- diff --git a/perspective-transform/opencv-perspective-transform.c b/perspective-transform/opencv-perspective-transform.c index fd78c36..270f7f3 100644 --- a/perspective-transform/opencv-perspective-transform.c +++ b/perspective-transform/opencv-perspective-transform.c @@ -109,6 +109,7 @@ int main(int argc, char *argv[]) ret = 0; + cvReleaseImage(&transformed_image); out_release_mat: cvReleaseMat(&perspective_matrix); out_destroy_window: