mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Dispose bitmap earlier
This fixes an exceptional resource leaked related to fixing CID18165
This commit is contained in:
parent
ca08816763
commit
bcb8dd78a5
@ -5457,9 +5457,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
progressBar1.Refresh();
|
||||
if (_abort)
|
||||
{
|
||||
bmp.Dispose();
|
||||
SetButtonsEnabledAfterOcrDone();
|
||||
_mainOcrRunning = false;
|
||||
bmp.Dispose();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user