Fix memleak in filescanner_ffmpeg arising for ffmpeg versions without icy support

This commit is contained in:
ejurgensen 2015-04-02 00:07:49 +02:00
parent 0f1a27641f
commit be21482d7b

View File

@ -364,6 +364,9 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi)
} }
ret = avformat_open_input(&ctx, path, NULL, &options); ret = avformat_open_input(&ctx, path, NULL, &options);
if (options)
av_dict_free(&options);
#else #else
ret = av_open_input_file(&ctx, path, NULL, 0, NULL); ret = av_open_input_file(&ctx, path, NULL, 0, NULL);
#endif #endif