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
f8c1e19a
Commit
f8c1e19a
authored
Nov 14, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detach osdmenu object before destroying.
parent
099b560c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
src/osd/osd.c
src/osd/osd.c
+5
-9
No files found.
src/osd/osd.c
View file @
f8c1e19a
...
...
@@ -100,20 +100,16 @@ static osd_menu_t *osd_ParserLoad( vlc_object_t *p_this, const char *psz_file )
static
void
osd_ParserUnload
(
vlc_object_t
*
p_this
,
osd_menu_t
*
p_menu
)
{
if
(
p_menu
->
p_parser
)
{
module_Unneed
(
p_menu
,
p_menu
->
p_parser
);
}
p_menu
->
p_parser
=
NULL
;
if
(
p_menu
->
p_image
)
image_HandlerDelete
(
p_menu
->
p_image
);
if
(
p_menu
->
psz_file
)
free
(
p_menu
->
psz_file
);
if
(
p_menu
->
p_parser
)
module_Unneed
(
p_menu
,
p_menu
->
p_parser
);
vlc_object_detach
(
p_menu
);
vlc_object_destroy
(
p_menu
);
p_menu
=
NULL
;
}
/*****************************************************************************
...
...
@@ -182,7 +178,7 @@ error:
if
(
p_osd
->
psz_file
)
free
(
p_osd
->
psz_file
);
vlc_
mutex_unlock
(
lockval
.
p_address
);
vlc_
object_detach
(
p_osd
);
vlc_object_destroy
(
p_osd
);
vlc_mutex_unlock
(
lockval
.
p_address
);
return
NULL
;
...
...
@@ -208,7 +204,7 @@ void __osd_MenuDelete( vlc_object_t *p_this, osd_menu_t *p_osd )
var_Destroy
(
p_osd
,
"osd-menu-update"
);
osd_ParserUnload
(
p_this
,
p_osd
);
p_osd
=
NULL
;
vlc_mutex_unlock
(
lockval
.
p_address
);
}
...
...
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