Commit ac318431 authored by Damien Fouilleul's avatar Damien Fouilleul

dshow.cpp: fixed a potentatial crash, some memory was released twice

parent 994fc228
......@@ -1295,7 +1295,6 @@ static size_t EnumDeviceCaps( vlc_object_t *p_this, IBaseFilter *p_filter,
// no need to check any more media types
i = piCount;
}
else FreeMediaType( *p_mt );
}
else if( p_mt->majortype == MEDIATYPE_Audio
&& p_mt->formattype == FORMAT_WaveFormatEx )
......
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