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
fc1e5cd7
Commit
fc1e5cd7
authored
Aug 20, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleak.
parent
bc727d2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/linear.c
+3
-0
modules/audio_filter/spatializer/spatializer.cpp
modules/audio_filter/spatializer/spatializer.cpp
+2
-0
No files found.
modules/audio_filter/resampler/linear.c
View file @
fc1e5cd7
...
...
@@ -103,7 +103,10 @@ static int Create( vlc_object_t *p_this )
p_sys
->
p_prev_sample
=
malloc
(
p_filter
->
input
.
i_channels
*
sizeof
(
int32_t
)
);
if
(
p_sys
->
p_prev_sample
==
NULL
)
{
free
(
p_sys
);
return
VLC_ENOMEM
;
}
aout_DateInit
(
&
p_sys
->
end_date
,
p_filter
->
output
.
i_rate
);
p_filter
->
pf_do_work
=
DoWork
;
...
...
modules/audio_filter/spatializer/spatializer.cpp
View file @
fc1e5cd7
...
...
@@ -142,6 +142,8 @@ static int Open( vlc_object_t *p_this )
/* Allocate structure */
p_sys
=
p_filter
->
p_sys
=
(
aout_filter_sys_t
*
)
malloc
(
sizeof
(
aout_filter_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
vlc_mutex_init
(
&
p_sys
->
lock
);
p_sys
->
p_reverbm
=
new
revmodel
();
...
...
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