mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Fix exceptional resource leak (CID50175)
This commit is contained in:
parent
8e63f14662
commit
a614eb7b2e
@ -702,11 +702,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isMatroska)
|
||||
if (isMatroska
|
||||
&& (Path.GetExtension(fileName).Equals(".mkv", StringComparison.OrdinalIgnoreCase) || Path.GetExtension(fileName).Equals(".mks", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
if (Path.GetExtension(fileName).Equals(".mkv", StringComparison.OrdinalIgnoreCase) || Path.GetExtension(fileName).Equals(".mks", StringComparison.OrdinalIgnoreCase))
|
||||
using (var mkv = new Matroska())
|
||||
{
|
||||
Matroska mkv = new Matroska();
|
||||
bool isValid = false;
|
||||
bool hasConstantFrameRate = false;
|
||||
double frameRate = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user