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
fdee36bb
Commit
fdee36bb
authored
May 31, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CID 107: dereference pointer before NULL check.
parent
b5aea372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
modules/video_filter/osdmenu.c
modules/video_filter/osdmenu.c
+14
-8
No files found.
modules/video_filter/osdmenu.c
View file @
fdee36bb
...
...
@@ -300,12 +300,15 @@ static void DestroyFilter( vlc_object_t *p_this )
var_DelCallback
(
p_filter
,
OSD_CFG
"update"
,
OSDMenuCallback
,
p_sys
);
var_DelCallback
(
p_filter
,
OSD_CFG
"alpha"
,
OSDMenuCallback
,
p_sys
);
var_DelCallback
(
p_sys
->
p_menu
,
"osd-menu-update"
,
OSDMenuUpdateEvent
,
p_filter
);
var_DelCallback
(
p_sys
->
p_menu
,
"osd-menu-visible"
,
OSDMenuVisibleEvent
,
p_filter
);
if
(
p_sys
)
{
var_DelCallback
(
p_sys
->
p_menu
,
"osd-menu-update"
,
OSDMenuUpdateEvent
,
p_filter
);
var_DelCallback
(
p_sys
->
p_menu
,
"osd-menu-visible"
,
OSDMenuVisibleEvent
,
p_filter
);
}
if
(
p_sys
->
p_vout
)
if
(
p_sys
&&
p_sys
->
p_vout
)
{
var_DelCallback
(
p_sys
->
p_vout
,
"mouse-x"
,
MouseEvent
,
p_sys
);
...
...
@@ -327,10 +330,13 @@ static void DestroyFilter( vlc_object_t *p_this )
var_Destroy
(
p_this
,
OSD_CFG
"update"
);
var_Destroy
(
p_this
,
OSD_CFG
"alpha"
);
osd_MenuDelete
(
p_filter
,
p_sys
->
p_menu
);
if
(
p_sys
)
{
osd_MenuDelete
(
p_filter
,
p_sys
->
p_menu
);
free
(
p_sys
->
psz_file
);
free
(
p_sys
);
free
(
p_sys
->
psz_file
);
free
(
p_sys
);
}
}
/*****************************************************************************
...
...
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