Prevent dereference before null check

This commit is contained in:
twinaphex 2016-06-19 23:09:19 +02:00
parent 77d0745f38
commit a741dadf20

View File

@ -711,6 +711,9 @@ static void fft_context_destroy(glfft_t *fft)
extern "C" void glfft_free(glfft_t *fft)
{
if (!fft)
return;
fft_context_destroy(fft);
if (fft)
free(fft);