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
adfc3b81
Commit
adfc3b81
authored
Oct 30, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvbsubdec: use av_freep() to avoid leaving stale pointers
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
25a36028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
dvbsubdec.c
libavcodec/dvbsubdec.c
+9
-9
No files found.
libavcodec/dvbsubdec.c
View file @
adfc3b81
...
...
@@ -313,14 +313,14 @@ static void delete_region_display_list(DVBSubContext *ctx, DVBSubRegion *region)
*
obj2_ptr
=
obj2
->
next
;
av_free
(
obj2
);
av_free
p
(
&
obj2
);
}
}
}
region
->
display_list
=
display
->
region_list_next
;
av_free
(
display
);
av_free
p
(
&
display
);
}
}
...
...
@@ -332,7 +332,7 @@ static void delete_cluts(DVBSubContext *ctx)
ctx
->
clut_list
=
clut
->
next
;
av_free
(
clut
);
av_free
p
(
&
clut
);
}
}
...
...
@@ -343,7 +343,7 @@ static void delete_objects(DVBSubContext *ctx)
ctx
->
object_list
=
object
->
next
;
av_free
(
object
);
av_free
p
(
&
object
);
}
}
...
...
@@ -356,8 +356,8 @@ static void delete_regions(DVBSubContext *ctx)
delete_region_display_list
(
ctx
,
region
);
av_free
(
region
->
pbuf
);
av_free
(
region
);
av_free
p
(
&
region
->
pbuf
);
av_free
p
(
&
region
);
}
}
...
...
@@ -462,7 +462,7 @@ static av_cold int dvbsub_close_decoder(AVCodecContext *avctx)
display
=
ctx
->
display_list
;
ctx
->
display_list
=
display
->
next
;
av_free
(
display
);
av_free
p
(
&
display
);
}
return
0
;
...
...
@@ -1312,7 +1312,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
tmp_display_list
=
display
->
next
;
av_free
(
display
);
av_free
p
(
&
display
);
}
}
...
...
@@ -1406,7 +1406,7 @@ static void save_display_set(DVBSubContext *ctx)
png_save2
(
filename
,
pbuf
,
width
,
height
);
av_free
(
pbuf
);
av_free
p
(
&
pbuf
);
}
fileno_index
++
;
...
...
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