You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix memory leak from repeated ProjDataInfo::clone() calls (UCL#1673)
* Fix memory leak in ScatterSimulation from repeated ProjDataInfo::clone() calls
* Small edit to add a new method to ScatterSimulation class to set the template projection data info using a ProjDataInfo object directly, instead of only through a shared pointer. This new method creates a shared pointer from the given ProjDataInfo object and then calls the existing method that takes a shared pointer.
* minor clean-up of test_blocks_on_cylindrical.
Co-authored-by: Kris Thielemans <KrisThielemans@users.noreply.github.com>
Copy file name to clipboardExpand all lines: documentation/release_6.4.htm
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,12 @@ <h3>Bug fixes</h3>
73
73
segments had problems, see <ahref=https://github.com/UCL/STIR/issues/1537># 1537</a>.<br>
74
74
<ahref=https://github.com/UCL/STIR/pull/1675># 1675</a>. Extra tests were introduced in <ahref=https://github.com/UCL/STIR/pull/1674># 1674</a>.
75
75
</li>
76
+
<li>
77
+
Fixed a small memory leak in scatter estimation caused by multiple calls to <code>ProjDataInfo::clone()</code> combined with <code>dynamic_cast</code>.
78
+
The object is now cloned once and ownership is transferred safely after type checking.<br>
0 commit comments