fix black screen when input Mat is large

This commit is contained in:
yao
2013-05-14 18:02:53 +08:00
parent abe2ea59ed
commit 1d1d28baf2
2 changed files with 98 additions and 18 deletions

View File

@@ -327,7 +327,7 @@ static void ocl_cvMoments( const void* array, CvMoments* mom, int binary )
mom->m12 = dstsum[8];
mom->m03 = dstsum[9];
delete [] dstsum;
openCLSafeCall(clReleaseMemObject(sum));
icvCompleteMomentState( mom );
}