possibly fix crash after render

issue #1503
This commit is contained in:
tildearrow 2023-09-27 02:22:56 -05:00
parent 08a93f9c4d
commit 6c88329ddd
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ class DivWorkPool;
#define EXTERN_BUSY_BEGIN_SOFT e->softLocked=true; e->isBusy.lock(); #define EXTERN_BUSY_BEGIN_SOFT e->softLocked=true; e->isBusy.lock();
#define EXTERN_BUSY_END e->isBusy.unlock(); e->softLocked=false; #define EXTERN_BUSY_END e->isBusy.unlock(); e->softLocked=false;
#define DIV_UNSTABLE //#define DIV_UNSTABLE
#define DIV_VERSION "0.6pre17" #define DIV_VERSION "0.6pre17"
#define DIV_ENGINE_VERSION 179 #define DIV_ENGINE_VERSION 179

View file

@ -106,7 +106,6 @@ void DivEngine::runExportThread() {
if (sfWrap.doClose()!=0) { if (sfWrap.doClose()!=0) {
logE("could not close audio file!"); logE("could not close audio file!");
} }
exporting=false;
if (initAudioBackend()) { if (initAudioBackend()) {
for (int i=0; i<song.systemLen; i++) { for (int i=0; i<song.systemLen; i++) {
@ -118,6 +117,7 @@ void DivEngine::runExportThread() {
} }
} }
logI("done!"); logI("done!");
exporting=false;
break; break;
} }
case DIV_EXPORT_MODE_MANY_SYS: { case DIV_EXPORT_MODE_MANY_SYS: {
@ -217,7 +217,6 @@ void DivEngine::runExportThread() {
logE("could not close audio file!"); logE("could not close audio file!");
} }
} }
exporting=false;
if (initAudioBackend()) { if (initAudioBackend()) {
for (int i=0; i<song.systemLen; i++) { for (int i=0; i<song.systemLen; i++) {
@ -229,6 +228,7 @@ void DivEngine::runExportThread() {
} }
} }
logI("done!"); logI("done!");
exporting=false;
break; break;
} }
case DIV_EXPORT_MODE_MANY_CHAN: { case DIV_EXPORT_MODE_MANY_CHAN: {
@ -336,7 +336,6 @@ void DivEngine::runExportThread() {
if (stopExport) break; if (stopExport) break;
} }
exporting=false;
delete[] outBuf[0]; delete[] outBuf[0];
delete[] outBuf[1]; delete[] outBuf[1];
@ -359,6 +358,7 @@ void DivEngine::runExportThread() {
} }
} }
logI("done!"); logI("done!");
exporting=false;
break; break;
} }
} }