diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-22 14:44:50 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2021-11-26 12:09:09 +0100 |
commit | 7cad7b813838ed2ddb65a4c9ea1c08c625c50043 (patch) | |
tree | 59ca80ff9e2d4356c28ee48f64eb68494e5f3372 /include/astra/cuda/2d | |
parent | be2da43a560a7241c56e727fb481f1389e9f7fdf (diff) | |
download | astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.tar.gz astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.tar.bz2 astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.tar.xz astra-7cad7b813838ed2ddb65a4c9ea1c08c625c50043.zip |
Fix memleak in error handling
Diffstat (limited to 'include/astra/cuda/2d')
-rw-r--r-- | include/astra/cuda/2d/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/astra/cuda/2d/util.h b/include/astra/cuda/2d/util.h index cacf0a9..2cf0639 100644 --- a/include/astra/cuda/2d/util.h +++ b/include/astra/cuda/2d/util.h @@ -66,7 +66,7 @@ bool zeroProjectionData(float* D_ptr, unsigned int pitch, const SDimensions& dim void duplicateVolumeData(float* D_dst, float* D_src, unsigned int pitch, const SDimensions& dims); void duplicateProjectionData(float* D_dst, float* D_src, unsigned int pitch, const SDimensions& dims); -bool createTextureObject2D(float* data, cudaArray*& dataArray, cudaTextureObject_t& texObj, unsigned int pitch, unsigned int width, unsigned int height); +bool createArrayAndTextureObject2D(float* data, cudaArray*& dataArray, cudaTextureObject_t& texObj, unsigned int pitch, unsigned int width, unsigned int height); bool createTextureObjectPitch2D(float* data, cudaTextureObject_t& texObj, unsigned int pitch, unsigned int width, unsigned int height, cudaTextureAddressMode mode = cudaAddressModeBorder); |