facedetect: wrong form to write the delete operator

The delete operator is written this way: delete (cascade). This way is
misspelled, it is an operator, not a function. Delete the parentheses.
This commit is contained in:
Vanessa Chipi 2015-08-10 23:02:12 +02:00 committed by Luis de Bethencourt
parent 28f9ff1312
commit 32942c99d8

View file

@ -805,7 +805,7 @@ gst_face_detect_load_profile (GstFaceDetect * filter, gchar * profile)
cascade = new CascadeClassifier (profile);
if (cascade->empty ()) {
GST_ERROR_OBJECT (filter, "Invalid profile file: %s", profile);
delete (cascade);
delete cascade;
return NULL;
}