From 410eb30c264db64f5a2bcb977352e476a427c88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Trombit=C3=A1s?= Date: Tue, 1 Mar 2016 21:40:05 +0100 Subject: [PATCH] Fix for #6192 (Mismatching delete) --- modules/videoio/src/cap_gstreamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_gstreamer.cpp b/modules/videoio/src/cap_gstreamer.cpp index 41754eaa09..e6edccdf5d 100644 --- a/modules/videoio/src/cap_gstreamer.cpp +++ b/modules/videoio/src/cap_gstreamer.cpp @@ -608,7 +608,7 @@ bool CvCapture_GStreamer::open( int type, const char* filename ) struct stat buf; if (pathSize == 0 || stat(uri, &buf) != 0) { - delete uri; + delete[] uri; uri = NULL; } #else