diff --git a/src/drivers/Qt/AviRecord.cpp b/src/drivers/Qt/AviRecord.cpp index f6a096a9..97652c41 100644 --- a/src/drivers/Qt/AviRecord.cpp +++ b/src/drivers/Qt/AviRecord.cpp @@ -841,6 +841,8 @@ static void log_callback( void *avcl, int level, const char *fmt, va_list vl) va_copy( vl2, vl ); vfprintf( avLogFp, fmt, vl2 ); + + va_end(vl2); } av_log_default_callback( avcl, level, fmt, vl );