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:
parent
28f9ff1312
commit
32942c99d8
@ -805,7 +805,7 @@ gst_face_detect_load_profile (GstFaceDetect * filter, gchar * profile)
|
|||||||
cascade = new CascadeClassifier (profile);
|
cascade = new CascadeClassifier (profile);
|
||||||
if (cascade->empty ()) {
|
if (cascade->empty ()) {
|
||||||
GST_ERROR_OBJECT (filter, "Invalid profile file: %s", profile);
|
GST_ERROR_OBJECT (filter, "Invalid profile file: %s", profile);
|
||||||
delete (cascade);
|
delete cascade;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user