From 5e82ec9b4226d8ab48dc5e4c8cafe331bd624643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 12 May 2012 22:33:39 +0200 Subject: [PATCH] doc/examples: properly close input in metadata. Avoid some memleaks. --- doc/examples/metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c index 7d29be7049..9f35912c5e 100644 --- a/doc/examples/metadata.c +++ b/doc/examples/metadata.c @@ -50,6 +50,6 @@ int main (int argc, char **argv) while ((tag = av_dict_get(fmt_ctx->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) printf("%s=%s\n", tag->key, tag->value); - avformat_free_context(fmt_ctx); + avformat_close_input(&fmt_ctx); return 0; }