Commit 9fe4b1f3 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Fix memory leak

parent 6cf60d85
...@@ -165,17 +165,17 @@ namespace ITA ...@@ -165,17 +165,17 @@ namespace ITA
{ {
ITA_EXCEPT_INVALID_PARAMETER ( "The channel count does not match." ); ITA_EXCEPT_INVALID_PARAMETER ( "The channel count does not match." );
} }
auto returnResult = std::make_unique<CRIRSimulationResult> ( ); auto returnResult = std::make_unique<CRIRSimulationResult> ( );
returnResult->eResultType = pTask->eSimulationType; returnResult->eResultType = pTask->eSimulationType;
returnResult->iReferenceID = pTask->uiReferenceID; returnResult->iReferenceID = pTask->uiReferenceID;
returnResult->bZerosStripped = soundPath->bZerosStripped; returnResult->bZerosStripped = soundPath->bZerosStripped;
returnResult->iLeadingZeros = soundPath->iLeadingZeros; returnResult->iLeadingZeros = soundPath->iLeadingZeros;
returnResult->iTrailingZeros = soundPath->iTailingZeros; returnResult->iTrailingZeros = soundPath->iTailingZeros;
returnResult->bSameRoom = soundPath->bEntitiesInSameRoom; returnResult->bSameRoom = soundPath->bEntitiesInSameRoom;
returnResult->sfResult = *soundPath->psfResult.release ( ); returnResult->sfResult = *soundPath->psfResult;
if ( pTask->oScene.GetSourceMap ( ).size ( ) != 1 ) if ( pTask->oScene.GetSourceMap ( ).size ( ) != 1 )
{ {
ITA_EXCEPT_INVALID_PARAMETER ( "Task has more than one source." ); ITA_EXCEPT_INVALID_PARAMETER ( "Task has more than one source." );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment