diff options
author | Darren Salt <devspam@moreofthesa.me.uk> | 2012-06-09 15:38:03 +0100 |
---|---|---|
committer | Darren Salt <devspam@moreofthesa.me.uk> | 2012-06-09 15:38:03 +0100 |
commit | 8eae9306239d6683d7cd06bf92be02bbd1c43865 (patch) | |
tree | 002ff64cc690e0470c3c83f83892f34ce773ba58 | |
parent | 7d997a77166b94aea43afbbc252f1aa0af00a7fa (diff) | |
download | xine-lib-8eae9306239d6683d7cd06bf92be02bbd1c43865.tar.gz xine-lib-8eae9306239d6683d7cd06bf92be02bbd1c43865.tar.bz2 |
Fix a possible NULL dereference when cleaning up in the FFT vis plugin code.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/post/visualizations/fft.c | 11 |
2 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,6 @@ xine-lib (1.1.21) ????-??-?? * Fix a potential double-free (goom) when playing AAC files. + * Fix a possible clean-up crash in the goom FFT code. * Fix matroska header compression. * MPEG-TS fixes and enhancements * Improved syncing of DVB subtitles diff --git a/src/post/visualizations/fft.c b/src/post/visualizations/fft.c index 7e32dbbf6..ac109e379 100644 --- a/src/post/visualizations/fft.c +++ b/src/post/visualizations/fft.c @@ -153,10 +153,13 @@ fft_t *fft_new (int bits) void fft_dispose(fft_t *fft) { - free(fft->SineTable); - free(fft->CosineTable); - free(fft->WinTable); - free(fft); + if (fft) + { + free(fft->SineTable); + free(fft->CosineTable); + free(fft->WinTable); + free(fft); + } } /* |