Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
687595ae
Commit
687595ae
authored
Jan 22, 2016
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in mkv reader.
parent
4d25e8a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/utils/mkv_reader.c
src/utils/mkv_reader.c
+4
-1
No files found.
src/utils/mkv_reader.c
View file @
687595ae
...
...
@@ -81,7 +81,7 @@ static void _mkv_track_reader_edit_seek(MKVTrackReader *obj);
MKVReader
*
mkv_reader_open
(
const
char
*
filename
)
{
MKVReader
*
obj
=
(
MKVReader
*
)
ms_new0
(
MKVReader
,
1
);
tchar_t
*
fname
;
tchar_t
*
fname
=
NULL
;
int
err
;
ParserContext_Init
(
&
obj
->
p
,
NULL
,
NULL
,
NULL
);
...
...
@@ -113,6 +113,9 @@ MKVReader *mkv_reader_open(const char *filename) {
return
obj
;
fail:
#ifdef UNICODE
if
(
fname
!=
NULL
)
ms_free
(
fname
);
#endif
if
(
obj
->
file
)
StreamClose
(
obj
->
file
);
if
(
obj
->
info_elt
)
NodeDelete
((
node
*
)
obj
->
info_elt
);
ms_list_free_with_data
(
obj
->
tracks_elt
,
(
void
(
*
)(
void
*
))
NodeDelete
);
...
...
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