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
6995be43
Commit
6995be43
authored
Nov 21, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/avdevice.c: Use av_freep(), avoid leaving stale pointers
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
883f85fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
avdevice.c
libavdevice/avdevice.c
+3
-3
No files found.
libavdevice/avdevice.c
View file @
6995be43
...
...
@@ -219,11 +219,11 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list)
for
(
i
=
0
;
i
<
list
->
nb_devices
;
i
++
)
{
dev
=
list
->
devices
[
i
];
if
(
dev
)
{
av_free
(
dev
->
device_name
);
av_free
(
dev
->
device_description
);
av_free
p
(
&
dev
->
device_name
);
av_free
p
(
&
dev
->
device_description
);
av_free
(
dev
);
}
}
av_free
(
list
->
devices
);
av_free
p
(
&
list
->
devices
);
av_freep
(
device_list
);
}
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