Skip to content

Commit

Permalink
avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale poin…
Browse files Browse the repository at this point in the history
…ters

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Nov 21, 2014
1 parent 5d37d70 commit c05310d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavdevice/pulse_audio_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ static void pulse_add_detected_device(PulseAudioDeviceList *info,
return;

fail:
av_free(new_device->device_description);
av_free(new_device->device_name);
av_freep(&new_device->device_description);
av_freep(&new_device->device_name);
av_free(new_device);

}
Expand Down

0 comments on commit c05310d

Please sign in to comment.