Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1829bf2e
Commit
1829bf2e
authored
Apr 01, 2007
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [19098]
Fixed a memleak per packetizer module_Need in flac.c
parent
ac81d6fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/codec/flac.c
modules/codec/flac.c
+7
-3
No files found.
modules/codec/flac.c
View file @
1829bf2e
...
...
@@ -254,9 +254,10 @@ static int OpenDecoder( vlc_object_t *p_this )
static
int
OpenPacketizer
(
vlc_object_t
*
p_this
)
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
es_format_t
es_save
=
p_dec
->
fmt_out
;
int
i_ret
;
/*
Hmmm, mem leak ?
*/
/* */
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
i_ret
=
OpenDecoder
(
p_this
);
...
...
@@ -264,8 +265,11 @@ static int OpenPacketizer( vlc_object_t *p_this )
/* Set output properties */
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'l'
,
'a'
,
'c'
);
if
(
i_ret
!=
VLC_SUCCESS
)
return
i_ret
;
if
(
i_ret
!=
VLC_SUCCESS
)
{
es_format_Clean
(
&
p_dec
->
fmt_out
);
p_dec
->
fmt_out
=
es_save
;
}
return
i_ret
;
}
...
...
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