Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3f7117af
Commit
3f7117af
authored
Jan 26, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed heavy memory leaks in bandlimited.c
parent
e080f331
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/audio_filter/resampler/bandlimited.c
modules/audio_filter/resampler/bandlimited.c
+5
-0
No files found.
modules/audio_filter/resampler/bandlimited.c
View file @
3f7117af
...
...
@@ -147,7 +147,10 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
+
p_filter
->
p_sys
->
i_buf_size
;
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
i_out_size
);
if
(
!
p_out_buf
)
{
block_Release
(
p_in_buf
);
return
NULL
;
}
float
*
p_out
=
(
float
*
)
p_out_buf
->
p_buffer
;
if
(
(
p_in_buf
->
i_flags
&
BLOCK_FLAG_DISCONTINUITY
)
||
p_sys
->
b_first
)
...
...
@@ -370,6 +373,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
else
{
p_sys
->
i_buf_size
=
p_sys
->
i_old_wing
=
0
;
/* oops! */
block_Release
(
p_in_buf
);
return
p_out_buf
;
}
}
...
...
@@ -384,6 +388,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
i_out * p_filter->fmt_in.audio.i_bytes_per_frame );
#endif
block_Release
(
p_in_buf
);
return
p_out_buf
;
}
...
...
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