Fixed possible crash in commit r728

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@746 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-10-25 16:44:58 +00:00
parent 8212588bde
commit f97cc5898e

View File

@ -23,7 +23,8 @@ namespace Nikse.SubtitleEdit.Logic.SpellCheck
~WindowsHunspell()
{
_hunspell.Dispose();
if (_hunspell != null && !_hunspell.IsDisposed)
_hunspell.Dispose();
}
}