mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-14 06:00:59 +00:00
The #ifdef PYTHON_API crap was preventing the write context to be deinitialized - meaning files not being closed, semaphores not deleted...
This commit is contained in:
parent
3fb5bab343
commit
d50e05315f
@ -11,12 +11,14 @@ void dinit_write(struct ccx_s_write *wb)
|
||||
{
|
||||
#ifdef ENABLE_PYTHON
|
||||
if(!signal_python_api){
|
||||
#endif
|
||||
if (wb->fh > 0)
|
||||
close(wb->fh);
|
||||
freep(&wb->filename);
|
||||
if (wb->with_semaphore && wb->semaphore_filename)
|
||||
unlink(wb->semaphore_filename);
|
||||
freep(&wb->semaphore_filename);
|
||||
#ifdef ENABLE_PYTHON
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user