Commit 80aa55bb authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memleak in opencv.

parent a5c83dda
......@@ -113,6 +113,7 @@ static int OpenFilter( vlc_object_t *p_this )
char* filename = config_GetPsz( p_filter, "opencv-haarcascade-file" );
p_filter->p_sys->p_cascade = (CvHaarClassifierCascade*)cvLoad( filename, 0, 0, 0 );
p_filter->p_sys->p_storage = cvCreateMemStorage(0);
free( filename );
return VLC_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment