avio: make avio_close NULL the freed buffer

pull/28/head
Luca Barbato 12 years ago
parent a684267076
commit 3093939077
  1. 2
      libavformat/aviobuf.c

@ -762,7 +762,7 @@ int avio_close(AVIOContext *s)
return 0;
h = s->opaque;
av_free(s->buffer);
av_freep(&s->buffer);
av_free(s);
return ffurl_close(h);
}

Loading…
Cancel
Save