Don't corrupt AVI if emulator is closed while dumping
This commit is contained in:
parent
af88bd28df
commit
6956ca9f8b
1 changed files with 8 additions and 2 deletions
|
@ -240,8 +240,14 @@ namespace
|
|||
|
||||
void on_dump_end()
|
||||
{
|
||||
worker->request_quit();
|
||||
soxdumper->close();
|
||||
if(worker)
|
||||
worker->request_quit();
|
||||
if(soxdumper)
|
||||
soxdumper->close();
|
||||
delete worker;
|
||||
delete soxdumper;
|
||||
worker = NULL;
|
||||
soxdumper = NULL;
|
||||
}
|
||||
|
||||
bool get_dumper_flag() throw()
|
||||
|
|
Loading…
Add table
Reference in a new issue