Dispose bitmap earlier

This fixes an exceptional resource leaked related to fixing CID18165
This commit is contained in:
_aLfa_ 2014-09-24 19:30:51 +02:00
parent ca08816763
commit bcb8dd78a5

View File

@ -5457,9 +5457,9 @@ namespace Nikse.SubtitleEdit.Forms
progressBar1.Refresh();
if (_abort)
{
bmp.Dispose();
SetButtonsEnabledAfterOcrDone();
_mainOcrRunning = false;
bmp.Dispose();
return true;
}