Skip to content

Commit

Permalink
Free library last to avoid crash in host_idle
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjac committed Aug 15, 2023
1 parent 9ee25c2 commit 889ec91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Aodix/AodixCoreInstance.cpp
Expand Up @@ -210,9 +210,6 @@ void CAodixCore::instance_free(ADX_INSTANCE* pi)
pi->peffect->dispatcher(pi->peffect,effMainsChanged,0,0,0,0.0f);
pi->peffect->dispatcher(pi->peffect,effClose,0,0,0,0.0f);

// decrement reference count
FreeLibrary(pi->h_dll);

// set null vst aeffect plug
pi->peffect=NULL;

Expand All @@ -230,6 +227,9 @@ void CAodixCore::instance_free(ADX_INSTANCE* pi)
// resest alias
memset(pi->alias,0,32);
sprintf(pi->alias,"---");

// decrement reference count
FreeLibrary(pi->h_dll);
}
}

Expand Down

0 comments on commit 889ec91

Please sign in to comment.