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
69956f28
Commit
69956f28
authored
Oct 01, 2008
by
Rémi Duraffort
Committed by
Derk-Jan Hartman
Oct 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleaks (CID 222 and 221)
(cherry picked from commit
543a4d3b
)
parent
315cfe17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
modules/video_filter/gradient.c
modules/video_filter/gradient.c
+13
-2
No files found.
modules/video_filter/gradient.c
View file @
69956f28
...
...
@@ -635,16 +635,27 @@ static void FilterHough( filter_t *p_filter, picture_t *p_inpic,
double
d_sin
;
double
d_cos
;
uint32_t
*
p_smooth
;
int
*
p_hough
=
malloc
(
i_diag
*
i_nb_steps
*
sizeof
(
int
)
);
if
(
!
p_hough
)
return
;
p_smooth
=
(
uint32_t
*
)
malloc
(
i_num_lines
*
i_src_visible
*
sizeof
(
uint32_t
));
if
(
!
p_smooth
)
return
;
if
(
!
p_smooth
)
{
free
(
p_hough
);
return
;
}
if
(
!
p_pre_hough
)
{
msg_Dbg
(
p_filter
,
"Starting precalculation"
);
p_pre_hough
=
malloc
(
i_num_lines
*
i_src_visible
*
i_nb_steps
*
sizeof
(
int
));
if
(
!
p_pre_hough
)
return
;
if
(
!
p_pre_hough
)
{
free
(
p_smooth
);
free
(
p_hough
);
return
;
}
for
(
i
=
0
;
i
<
i_nb_steps
;
i
++
)
{
d_sin
=
sin
(
d_step
*
i
);
...
...
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