Skip to content

Commit

Permalink
Fix Coverity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed May 29, 2018
1 parent b1ec722 commit a3a047b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libretro-common/audio/audio_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ static bool audio_mixer_play_flac(

if (!flac_buffer)
{
resamp->free(resampler_data);
if (resamp && resamp->free)
resamp->free(resampler_data);
goto error;
}

Expand Down

0 comments on commit a3a047b

Please sign in to comment.