Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2a93f28a
Commit
2a93f28a
authored
Sep 30, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat_free_context: favor av_freep()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3b6c0ba3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
utils.c
libavformat/utils.c
+8
-8
No files found.
libavformat/utils.c
View file @
2a93f28a
...
...
@@ -2713,13 +2713,13 @@ void avformat_free_context(AVFormatContext *s)
av_free_packet
(
&
st
->
cur_pkt
);
}
av_dict_free
(
&
st
->
metadata
);
av_free
(
st
->
index_entries
);
av_free
(
st
->
codec
->
extradata
);
av_free
(
st
->
codec
->
subtitle_header
);
av_free
(
st
->
codec
);
av_free
(
st
->
priv_data
);
av_free
(
st
->
info
);
av_free
(
st
);
av_free
p
(
&
st
->
index_entries
);
av_free
p
(
&
st
->
codec
->
extradata
);
av_free
p
(
&
st
->
codec
->
subtitle_header
);
av_free
p
(
&
st
->
codec
);
av_free
p
(
&
st
->
priv_data
);
av_free
p
(
&
st
->
info
);
av_free
p
(
&
st
);
}
for
(
i
=
s
->
nb_programs
-
1
;
i
>=
0
;
i
--
)
{
av_dict_free
(
&
s
->
programs
[
i
]
->
metadata
);
...
...
@@ -2730,7 +2730,7 @@ void avformat_free_context(AVFormatContext *s)
av_freep
(
&
s
->
priv_data
);
while
(
s
->
nb_chapters
--
)
{
av_dict_free
(
&
s
->
chapters
[
s
->
nb_chapters
]
->
metadata
);
av_free
(
s
->
chapters
[
s
->
nb_chapters
]);
av_free
p
(
&
s
->
chapters
[
s
->
nb_chapters
]);
}
av_freep
(
&
s
->
chapters
);
av_dict_free
(
&
s
->
metadata
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment