Revision 47146dfb libavformat/utils.c

View differences:

libavformat/utils.c
21 21
#include "avformat.h"
22 22
#include "internal.h"
23 23
#include "libavcodec/opt.h"
24
#include "libavcodec/metadata.h"
24 25
#include "libavutil/avstring.h"
25 26
#include "riff.h"
26 27
#include <sys/time.h>
......
2305 2306
        av_free(s->chapters[s->nb_chapters]);
2306 2307
    }
2307 2308
    av_freep(&s->chapters);
2309
    if(s->meta_data){
2310
        while(s->meta_data->count--){
2311
            av_freep(&s->meta_data->elems[s->meta_data->count].key);
2312
            av_freep(&s->meta_data->elems[s->meta_data->count].value);
2313
        }
2314
        av_freep(&s->meta_data->elems);
2315
    }
2316
    av_freep(&s->meta_data);
2308 2317
    av_free(s);
2309 2318
}
2310 2319

  

Also available in: Unified diff