Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITASimulationScheduler
Commits
9fe4b1f3
Commit
9fe4b1f3
authored
Aug 07, 2020
by
Pascal Palenda
Browse files
Fix memory leak
parent
6cf60d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ITA/SimulationScheduler/RoomAcoustics/Raven/raven_worker_interface.cpp
View file @
9fe4b1f3
...
@@ -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."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment