Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ced821f1
Commit
ced821f1
authored
Jul 19, 2013
by
ivoire
Browse files
Fix potential memory leaks (cid #1049567-1049570)
parent
2b8ee7da
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/puzzle_pce.c
View file @
ced821f1
...
...
@@ -117,8 +117,13 @@ int puzzle_bake_pieces_shapes( filter_t *p_filter)
point_t
*
ps_neg_pts_H
=
puzzle_curve_H_2_negative
(
7
,
ps_scale_pts_H
);
point_t
*
ps_neg_pts_V
=
puzzle_curve_V_2_negative
(
7
,
ps_scale_pts_V
);
if
(
!
ps_scale_pts_H
||
!
ps_scale_pts_V
||
!
ps_neg_pts_H
||
!
ps_neg_pts_V
)
if
(
!
ps_scale_pts_H
||
!
ps_scale_pts_V
||
!
ps_neg_pts_H
||
!
ps_neg_pts_V
)
{
free
(
ps_scale_pts_H
);
free
(
ps_scale_pts_V
);
free
(
ps_neg_pts_H
);
free
(
ps_neg_pts_V
);
return
VLC_EGENERIC
;
}
int
i_ret
;
for
(
uint8_t
i_plane
=
0
;
i_plane
<
p_filter
->
p_sys
->
s_allocated
.
i_planes
;
i_plane
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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