We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a79e74f commit 6e476b0Copy full SHA for 6e476b0
source/DEINDUGens/JPverbRaw.cpp
@@ -1527,7 +1527,9 @@ void Faust_next_clear(Faust* unit, int inNumSamples)
1527
void Faust_Ctor(Faust* unit) // module constructor
1528
{
1529
// allocate dsp
1530
- unit->mDSP = new(RTAlloc(unit->mWorld, sizeof(FAUSTCLASS))) FAUSTCLASS();
+ void* mem = RTAlloc(unit->mWorld, sizeof(FAUSTCLASS));
1531
+ ClearUnitIfMemFailed(mem);
1532
+ unit->mDSP = new (mem) FAUSTCLASS();
1533
if (!unit->mDSP) {
1534
Print("Faust[%s]: RT memory allocation failed, try increasing the real-time memory size in the server options\n", g_unitName);
1535
goto end;
0 commit comments