Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
469dc547
Commit
469dc547
authored
Nov 20, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed double free.
parent
7976ebd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/demux/ts.c
modules/demux/ts.c
+5
-5
No files found.
modules/demux/ts.c
View file @
469dc547
...
@@ -1562,15 +1562,15 @@ static void PIDInit( ts_pid_t *pid, bool b_psi, ts_psi_t *p_owner )
...
@@ -1562,15 +1562,15 @@ static void PIDInit( ts_pid_t *pid, bool b_psi, ts_psi_t *p_owner )
if
(
!
b_old_valid
)
if
(
!
b_old_valid
)
{
{
free
(
pid
->
psi
);
pid
->
psi
=
malloc
(
sizeof
(
ts_psi_t
)
);
pid
->
psi
=
malloc
(
sizeof
(
ts_psi_t
)
);
if
(
pid
->
psi
)
if
(
pid
->
psi
)
{
{
pid
->
psi
->
handle
=
NULL
;
pid
->
psi
->
handle
=
NULL
;
pid
->
psi
->
i_prg
=
0
;
TAB_INIT
(
pid
->
psi
->
i_prg
,
pid
->
psi
->
prg
);
pid
->
psi
->
prg
=
NULL
;
}
}
}
}
assert
(
pid
->
psi
);
pid
->
psi
->
i_pat_version
=
-
1
;
pid
->
psi
->
i_pat_version
=
-
1
;
pid
->
psi
->
i_sdt_version
=
-
1
;
pid
->
psi
->
i_sdt_version
=
-
1
;
if
(
p_owner
)
if
(
p_owner
)
...
@@ -3186,7 +3186,7 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
...
@@ -3186,7 +3186,7 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
* parsing the SDT/EDT */
* parsing the SDT/EDT */
dvbpsi_DetachDemux
(
pid
->
psi
->
handle
);
dvbpsi_DetachDemux
(
pid
->
psi
->
handle
);
free
(
pid
->
psi
);
free
(
pid
->
psi
);
pid
->
psi
=
0
;
pid
->
psi
=
NULL
;
}
}
else
else
{
{
...
...
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