facedetect: wrong form to write the delete operator
authorVanessa Chipi <vchipirras6@gmail.com>
Mon, 10 Aug 2015 21:02:12 +0000 (23:02 +0200)
committerLuis de Bethencourt <luis@debethencourt.com>
Tue, 11 Aug 2015 10:26:17 +0000 (11:26 +0100)
The delete operator is written this way: delete (cascade). This way is
misspelled, it is an operator, not a function. Delete the parentheses.

ext/opencv/gstfacedetect.cpp

index a5e4b99..722244f 100644 (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;
   }