libmodplug: free file content buffer in read_close() callback.

pull/2/head
Clément Bœsch 13 years ago
parent 8830c4e8a9
commit 1b3b4a575b
  1. 1
      libavformat/libmodplug.c

@ -204,6 +204,7 @@ static int modplug_read_close(AVFormatContext *s)
{ {
ModPlugContext *modplug = s->priv_data; ModPlugContext *modplug = s->priv_data;
ModPlug_Unload(modplug->f); ModPlug_Unload(modplug->f);
av_freep(&modplug->buf);
return 0; return 0;
} }

Loading…
Cancel
Save