DTolm / VkFFT

Vulkan/CUDA/HIP/OpenCL/Level Zero/Metal Fast Fourier Transform library
MIT License
1.52k stars 91 forks source link

Add NULL pointer check to deleteVkFFT #152

Closed DejvBayer closed 8 months ago

DejvBayer commented 8 months ago

Copy behaviour of e. g. free and fftw_plan_destroy, where deleting null pointer does nothing instead of segmentation fault.

DTolm commented 8 months ago

Sure, this failsafe can be useful. I will just switch it from NULL to plain 0 as I used 0 everywhere else. Thank you!