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
2a9b3101
Commit
2a9b3101
authored
Nov 13, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSD: use picture_Release() not free() !
parent
a69d057f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
modules/misc/osd/osd_menu.c
modules/misc/osd/osd_menu.c
+2
-8
No files found.
modules/misc/osd/osd_menu.c
View file @
2a9b3101
...
@@ -235,10 +235,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states )
...
@@ -235,10 +235,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states )
if
(
p_state
->
p_next
)
if
(
p_state
->
p_next
)
{
{
if
(
p_state
->
p_next
->
p_pic
)
if
(
p_state
->
p_next
->
p_pic
)
{
picture_Release
(
p_state
->
p_next
->
p_pic
);
free
(
p_state
->
p_next
->
p_pic
->
p_data_orig
);
free
(
p_state
->
p_next
->
p_pic
);
}
free
(
p_state
->
p_next
->
psz_state
);
free
(
p_state
->
p_next
->
psz_state
);
free
(
p_state
->
p_next
);
free
(
p_state
->
p_next
);
p_state
->
p_next
=
NULL
;
p_state
->
p_next
=
NULL
;
...
@@ -250,10 +247,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states )
...
@@ -250,10 +247,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states )
msg_Dbg
(
p_menu
,
" |- freeing state %s [%p]"
,
msg_Dbg
(
p_menu
,
" |- freeing state %s [%p]"
,
p_state
->
psz_state
,
p_states
);
p_state
->
psz_state
,
p_states
);
if
(
p_states
->
p_pic
)
if
(
p_states
->
p_pic
)
{
picture_Release
(
p_state
->
p_next
->
p_pic
);
free
(
p_states
->
p_pic
->
p_data_orig
);
free
(
p_states
->
p_pic
);
}
free
(
p_state
->
psz_state
);
free
(
p_state
->
psz_state
);
free
(
p_states
);
free
(
p_states
);
}
}
...
...
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