Commit c05310d4 authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5d37d70b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment