You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -163,8 +163,8 @@ static void pulse_add_detected_device(PulseAudioDeviceList *info,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
av_free(new_device->device_description);
|
av_freep(&new_device->device_description);
|
||||||
av_free(new_device->device_name);
|
av_freep(&new_device->device_name);
|
||||||
av_free(new_device);
|
av_free(new_device);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user