]> git.sesse.net Git - vlc/blobdiff - modules/visualization/visual/fft.c
Use pl_Locked and pl_Unlocked
[vlc] / modules / visualization / visual / fft.c
index ab723cacb59e86dfa834183f22cc902707e20d58..82bd591bb1c52b604905a3f7567f18142e39dddf 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#include <stdlib.h>
 #include "fft.h"
 
-#include <stdlib.h>
 #include <math.h>
 #ifndef PI
  #ifdef M_PI
@@ -109,7 +109,7 @@ void fft_perform(const sound_sample *input, float *output, fft_state *state) {
  * Free the state.
  */
 void fft_close(fft_state *state) {
-    if(state) free(state);
+    free( state );
 }
 
 /*****************************************************************************