HomePhabricator
Diffusion MITK 9de134ecf57a

Fix memory leak when image accessor fails to construct

Description

Fix memory leak when image accessor fails to construct

Make sure to free any already allocated memory before allowing an
exception to propagate out of the constructor because the destructor
will not be called on the non-completely-constructed ImageReadAccessor
object.

Signed-off-by: Taylor Braun-Jones <taylor.braun-jones@ge.com>

Details

Provenance
nocnokneoAuthored on Sep 10 2014, 3:53 PM
Parents
rMITK01c001a886be: Merge branch 'bug-16800-MiniAppDocu2'
Branches
Unknown
Tags
Unknown