From 32942c99d882dec0d6ed0ca4f31f5c83fe2b6b62 Mon Sep 17 00:00:00 2001 From: Vanessa Chipi Date: Mon, 10 Aug 2015 23:02:12 +0200 Subject: [PATCH] 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. --- ext/opencv/gstfacedetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opencv/gstfacedetect.cpp b/ext/opencv/gstfacedetect.cpp index a5e4b99ec3..722244fe54 100644 --- a/ext/opencv/gstfacedetect.cpp +++ b/ext/opencv/gstfacedetect.cpp @@ -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; }