Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f07b45fc
Commit
f07b45fc
authored
Oct 28, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: fix NULL dereference and flawed logic
parent
d9c624c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
modules/lua/extension.c
modules/lua/extension.c
+13
-14
No files found.
modules/lua/extension.c
View file @
f07b45fc
...
...
@@ -1207,21 +1207,20 @@ static void WatchTimerCallback( void *data )
vlc_mutex_lock
(
&
p_ext
->
p_sys
->
command_lock
);
// Do we have a pending Deactivate command?
if
(
(
p_ext
->
p_sys
->
command
&&
p_ext
->
p_sys
->
command
->
i_command
==
CMD_DEACTIVATE
)
||
(
p_ext
->
p_sys
->
command
->
next
&&
p_ext
->
p_sys
->
command
->
next
->
i_command
==
CMD_DEACTIVATE
)
)
{
if
(
p_ext
->
p_sys
->
progress
)
{
dialog_ProgressDestroy
(
p_ext
->
p_sys
->
progress
);
p_ext
->
p_sys
->
progress
=
NULL
;
for
(
struct
command_t
*
cmd
=
p_ext
->
p_sys
->
command
;
cmd
!=
NULL
;
cmd
=
cmd
->
next
)
if
(
cmd
->
i_command
==
CMD_DEACTIVATE
)
{
/* We have a pending Deactivate command... */
if
(
p_ext
->
p_sys
->
progress
)
{
dialog_ProgressDestroy
(
p_ext
->
p_sys
->
progress
);
p_ext
->
p_sys
->
progress
=
NULL
;
}
vlc_mutex_unlock
(
&
p_ext
->
p_sys
->
command_lock
);
KillExtension
(
p_mgr
,
p_ext
);
return
;
}
vlc_mutex_unlock
(
&
p_ext
->
p_sys
->
command_lock
);
KillExtension
(
p_mgr
,
p_ext
);
return
;
}
if
(
!
p_ext
->
p_sys
->
progress
)
{
...
...
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