X-Git-Url: https://git.piment-noir.org/?p=deb_ffmpeg.git;a=blobdiff_plain;f=ffmpeg%2Flibavdevice%2Favdevice.c;h=755f2517277e726614a7e7ad441aa80627cd8b19;hp=6a75bd79d7fc08746ae28e944acf5fe95bf041f2;hb=f6fa7814ccfe3e76514b36cf04f5cd3cb657c8cf;hpb=2ba45a602cbfa7b771effba9b11bb4245c21bc00 diff --git a/ffmpeg/libavdevice/avdevice.c b/ffmpeg/libavdevice/avdevice.c index 6a75bd7..755f251 100644 --- a/ffmpeg/libavdevice/avdevice.c +++ b/ffmpeg/libavdevice/avdevice.c @@ -219,11 +219,11 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list) for (i = 0; i < list->nb_devices; i++) { dev = list->devices[i]; if (dev) { - av_free(dev->device_name); - av_free(dev->device_description); + av_freep(&dev->device_name); + av_freep(&dev->device_description); av_free(dev); } } - av_free(list->devices); + av_freep(&list->devices); av_freep(device_list); }