Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
aa5a922f
Commit
aa5a922f
authored
Sep 11, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: fix some memory leaks
parent
c89097c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+8
-3
No files found.
modules/demux/mkv.cpp
View file @
aa5a922f
...
...
@@ -3988,6 +3988,8 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
{
KaxTrackLanguage
&
lang
=
*
(
KaxTrackLanguage
*
)
l
;
if
(
tk
->
fmt
.
psz_language
!=
NULL
)
free
(
tk
->
fmt
.
psz_language
);
tk
->
fmt
.
psz_language
=
strdup
(
string
(
lang
).
c_str
()
);
msg_Dbg
(
&
sys
.
demuxer
,
"| | | + Track Language=`%s'"
,
tk
->
fmt
.
psz_language
);
...
...
@@ -4303,19 +4305,22 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
if
(
MKV_IS_ID
(
l
,
KaxSegmentUID
)
)
{
p_segment_uid
=
new
KaxSegmentUID
(
*
static_cast
<
KaxSegmentUID
*>
(
l
));
if
(
p_segment_uid
==
NULL
)
p_segment_uid
=
new
KaxSegmentUID
(
*
static_cast
<
KaxSegmentUID
*>
(
l
));
msg_Dbg
(
&
sys
.
demuxer
,
"| | + UID=%d"
,
*
(
uint32
*
)
p_segment_uid
->
GetBuffer
()
);
}
else
if
(
MKV_IS_ID
(
l
,
KaxPrevUID
)
)
{
p_prev_segment_uid
=
new
KaxPrevUID
(
*
static_cast
<
KaxPrevUID
*>
(
l
));
if
(
p_prev_segment_uid
==
NULL
)
p_prev_segment_uid
=
new
KaxPrevUID
(
*
static_cast
<
KaxPrevUID
*>
(
l
));
msg_Dbg
(
&
sys
.
demuxer
,
"| | + PrevUID=%d"
,
*
(
uint32
*
)
p_prev_segment_uid
->
GetBuffer
()
);
}
else
if
(
MKV_IS_ID
(
l
,
KaxNextUID
)
)
{
p_next_segment_uid
=
new
KaxNextUID
(
*
static_cast
<
KaxNextUID
*>
(
l
));
if
(
p_next_segment_uid
==
NULL
)
p_next_segment_uid
=
new
KaxNextUID
(
*
static_cast
<
KaxNextUID
*>
(
l
));
msg_Dbg
(
&
sys
.
demuxer
,
"| | + NextUID=%d"
,
*
(
uint32
*
)
p_next_segment_uid
->
GetBuffer
()
);
}
...
...
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