[Gridflow-cvs] [svn] commit: r3945 - /trunk/optional/opencv.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Jun 25 16:45:57 EDT 2008


Author: matju
Date: Wed Jun 25 16:45:56 2008
New Revision: 3945

Log:
fix the other big leak

Modified:
    trunk/optional/opencv.c

Modified: trunk/optional/opencv.c
==============================================================================
--- trunk/optional/opencv.c (original)
+++ trunk/optional/opencv.c Wed Jun 25 16:45:56 2008
@@ -218,9 +218,9 @@
 	cvReleaseMat((CvMat **)&c0);
 	cvReleaseMat((CvMat **)&c1);
 	cvReleaseMat((CvMat **)&c2);
-	(new GridOutlet(this,2,in->dim,in->nt))->send(o2->dim->prod(),(T *)o2->data);
-	(new GridOutlet(this,1,in->dim,in->nt))->send(o1->dim->prod(),(T *)o1->data);
-	(new GridOutlet(this,0,in->dim,in->nt))->send(o0->dim->prod(),(T *)o0->data);
+	out = new GridOutlet(this,2,in->dim,in->nt); out->send(o2->dim->prod(),(T *)o2->data);
+	out = new GridOutlet(this,1,in->dim,in->nt); out->send(o1->dim->prod(),(T *)o1->data);
+	out = new GridOutlet(this,0,in->dim,in->nt); out->send(o0->dim->prod(),(T *)o0->data);
 } GRID_END
 \end class {install("cv.SVD",1,3);}
 



More information about the Gridflow-cvs mailing list