Commit 841cfc54 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe free

parent 491b4c44
......@@ -51,7 +51,7 @@ QStringList V4lCaptureHandler::getDeviceName(QString input)
QString pixelformatdescription;
int fd = open(src, O_RDWR | O_NONBLOCK);
if(fd < 0) {
delete[] src;
free(src);
return QStringList();
}
struct v4l2_capability cap;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment