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
8e6a44cf
Commit
8e6a44cf
authored
Nov 22, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/iec61883: Use av_freep(), avoid leaving stale pointers in memory
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
90c9b494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
iec61883.c
libavdevice/iec61883.c
+4
-4
No files found.
libavdevice/iec61883.c
View file @
8e6a44cf
...
...
@@ -219,8 +219,8 @@ static int iec61883_parse_queue_hdv(struct iec61883_data *dv, AVPacket *pkt)
size
=
avpriv_mpegts_parse_packet
(
dv
->
mpeg_demux
,
pkt
,
packet
->
buf
,
packet
->
len
);
dv
->
queue_first
=
packet
->
next
;
av_free
(
packet
->
buf
);
av_free
(
packet
);
av_free
p
(
&
packet
->
buf
);
av_free
p
(
&
packet
);
dv
->
packets
--
;
if
(
size
>
0
)
...
...
@@ -455,8 +455,8 @@ static int iec61883_close(AVFormatContext *context)
while
(
dv
->
queue_first
)
{
DVPacket
*
packet
=
dv
->
queue_first
;
dv
->
queue_first
=
packet
->
next
;
av_free
(
packet
->
buf
);
av_free
(
packet
);
av_free
p
(
&
packet
->
buf
);
av_free
p
(
&
packet
);
}
iec61883_cmp_disconnect
(
dv
->
raw1394
,
dv
->
node
,
dv
->
output_port
,
...
...
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