Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
cd579fd8
Commit
cd579fd8
authored
Aug 27, 2009
by
ivoire
Browse files
logo: fix memleak.
parent
a95457ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/logo.c
View file @
cd579fd8
...
@@ -629,13 +629,14 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
...
@@ -629,13 +629,14 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
const
char
*
psz_filename
)
const
char
*
psz_filename
)
{
{
char
*
psz_list
;
/* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */
char
*
psz_list
;
/* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */
char
*
psz_original
;
unsigned
int
i
;
unsigned
int
i
;
logo_t
*
p_logo
;
/* the parsing's result */
logo_t
*
p_logo
;
/* the parsing's result */
p_logo_list
->
i_counter
=
0
;
p_logo_list
->
i_counter
=
0
;
p_logo_list
->
i_next_pic
=
0
;
p_logo_list
->
i_next_pic
=
0
;
psz_list
=
strdup
(
psz_filename
);
psz_original
=
psz_list
=
strdup
(
psz_filename
);
if
(
!
psz_list
)
if
(
!
psz_list
)
abort
();
abort
();
...
@@ -699,6 +700,8 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
...
@@ -699,6 +700,8 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list,
/* initialize so that on the first update it will wrap back to 0 */
/* initialize so that on the first update it will wrap back to 0 */
p_logo_list
->
i_counter
=
p_logo_list
->
i_count
-
1
;
p_logo_list
->
i_counter
=
p_logo_list
->
i_count
-
1
;
free
(
psz_original
);
}
}
/**
/**
...
...
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