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
5804ccb7
Commit
5804ccb7
authored
May 31, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CID 107: Pointer p_sys dereferenced before NULL check.
parent
838c50f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
modules/video_filter/osdmenu.c
modules/video_filter/osdmenu.c
+12
-10
No files found.
modules/video_filter/osdmenu.c
View file @
5804ccb7
...
...
@@ -2,7 +2,7 @@
* osdmenu.c: osd filter module
*****************************************************************************
* Copyright (C) 2004-2005 M2X
* $Id$
* $Id
: d837e0a881fa43e0a2719c8b20823755239b19a6
$
*
* Authors: Jean-Paul Saman <jpsaman #_at_# m2x dot nl>
*
...
...
@@ -249,8 +249,8 @@ error:
osd_MenuDelete
(
p_this
,
p_filter
->
p_sys
->
p_menu
);
p_filter
->
p_sys
->
p_menu
=
NULL
;
}
if
(
p_filter
->
p_sys
->
psz_file
)
free
(
p_filter
->
p_sys
->
psz_file
);
if
(
p_filter
->
p_sys
)
free
(
p_filter
->
p_sys
);
free
(
p_filter
->
p_sys
->
psz_file
);
free
(
p_filter
->
p_sys
);
return
VLC_EGENERIC
;
}
...
...
@@ -269,15 +269,17 @@ static void DestroyFilter( vlc_object_t *p_this )
var_Destroy
(
p_this
,
OSD_CFG
"timeout"
);
var_Destroy
(
p_this
,
OSD_CFG
"update"
);
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
);
osd_MenuDelete
(
p_filter
,
p_sys
->
p_menu
);
vlc_mutex_destroy
(
&
p_filter
->
p_sys
->
lock
);
if
(
p_sys
->
psz_file
)
free
(
p_sys
->
psz_file
);
if
(
p_sys
)
free
(
p_sys
);
free
(
p_sys
->
psz_file
);
free
(
p_sys
);
}
msg_Dbg
(
p_filter
,
"osdmenu filter destroyed"
);
}
...
...
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