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
b5aea372
Commit
b5aea372
authored
May 31, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CID: 101 resource leak in osdmenu parser.
parent
091157c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
modules/misc/osd/simple.c
modules/misc/osd/simple.c
+21
-3
No files found.
modules/misc/osd/simple.c
View file @
b5aea372
...
@@ -270,9 +270,15 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
...
@@ -270,9 +270,15 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
else
/* absolute paths are used. */
else
/* absolute paths are used. */
p_range_current
=
osd_StateNew
(
p_menu
,
&
file
[
0
],
"pressed"
);
p_range_current
=
osd_StateNew
(
p_menu
,
&
file
[
0
],
"pressed"
);
if
(
!
p_range_current
||
!
p_range_current
->
p_pic
)
if
(
!
p_range_current
)
goto
error
;
goto
error
;
if
(
!
p_range_current
->
p_pic
)
{
osd_StatesFree
(
p_menu
,
p_range_current
);
goto
error
;
}
p_range_current
->
i_x
=
i_x
;
p_range_current
->
i_x
=
i_x
;
p_range_current
->
i_y
=
i_y
;
p_range_current
->
i_y
=
i_y
;
...
@@ -369,8 +375,14 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
...
@@ -369,8 +375,14 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
else
/* absolute paths are used. */
else
/* absolute paths are used. */
p_range_current
=
osd_StateNew
(
p_menu
,
&
file
[
0
],
"pressed"
);
p_range_current
=
osd_StateNew
(
p_menu
,
&
file
[
0
],
"pressed"
);
if
(
!
p_range_current
||
!
p_range_current
->
p_pic
)
if
(
!
p_range_current
)
goto
error
;
if
(
!
p_range_current
->
p_pic
)
{
osd_StatesFree
(
p_menu
,
p_range_current
);
goto
error
;
goto
error
;
}
p_range_current
->
i_x
=
i_x
;
p_range_current
->
i_x
=
i_x
;
p_range_current
->
i_y
=
i_y
;
p_range_current
->
i_y
=
i_y
;
...
@@ -439,8 +451,14 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
...
@@ -439,8 +451,14 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
else
/* absolute paths are used. */
else
/* absolute paths are used. */
p_state_current
=
osd_StateNew
(
p_menu
,
&
file
[
0
],
&
state
[
0
]
);
p_state_current
=
osd_StateNew
(
p_menu
,
&
file
[
0
],
&
state
[
0
]
);
if
(
!
p_state_current
||
!
p_state_current
->
p_pic
)
if
(
!
p_state_current
)
goto
error
;
if
(
!
p_state_current
->
p_pic
)
{
osd_StatesFree
(
p_menu
,
p_state_current
);
goto
error
;
goto
error
;
}
p_state_current
->
i_x
=
i_x
;
p_state_current
->
i_x
=
i_x
;
p_state_current
->
i_y
=
i_y
;
p_state_current
->
i_y
=
i_y
;
...
...
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