Commit 7a1b6718 authored by Thomas Guillem's avatar Thomas Guillem

demux/image: fix mem leak

parent 28ca1b85
...@@ -647,6 +647,7 @@ static int Open(vlc_object_t *object) ...@@ -647,6 +647,7 @@ static int Open(vlc_object_t *object)
vlc_fourcc_t chroma = vlc_fourcc_GetCodecFromString(VIDEO_ES, string); vlc_fourcc_t chroma = vlc_fourcc_GetCodecFromString(VIDEO_ES, string);
free(string); free(string);
block_Release(data);
data = Decode(demux, &fmt.video, chroma, data); data = Decode(demux, &fmt.video, chroma, data);
fmt.i_codec = fmt.video.i_chroma; fmt.i_codec = fmt.video.i_chroma;
} }
......
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