Browse Source

avformat/dss: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
be0cb7e053
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dss.c

+ 1
- 1
libavformat/dss.c View File

@@ -326,7 +326,7 @@ static int dss_read_close(AVFormatContext *s)
{
DSSDemuxContext *ctx = s->priv_data;

av_free(ctx->dss_sp_buf);
av_freep(&ctx->dss_sp_buf);

return 0;
}


Loading…
Cancel
Save