Revision 42f97696 libavformat/sapenc.c

View differences:

libavformat/sapenc.c
46 46
            continue;
47 47
        av_write_trailer(rtpctx);
48 48
        url_fclose(rtpctx->pb);
49
        av_metadata_free(&rtpctx->streams[0]->metadata);
50
        av_metadata_free(&rtpctx->metadata);
51
        av_free(rtpctx->streams[0]->codec->extradata);
52
        av_free(rtpctx->streams[0]->codec);
53
        av_free(rtpctx->streams[0]->info);
54
        av_free(rtpctx->streams[0]);
55
        av_free(rtpctx);
49
        avformat_free_context(rtpctx);
56 50
        s->streams[i]->priv_data = NULL;
57 51
    }
58 52

  

Also available in: Unified diff