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
4106f477
Commit
4106f477
authored
May 05, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions: fix a leak (and a potential crash)
parent
45ea8ad0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/misc/lua/extension_thread.c
modules/misc/lua/extension_thread.c
+7
-4
No files found.
modules/misc/lua/extension_thread.c
View file @
4106f477
...
@@ -277,10 +277,12 @@ int __PushCommand( extension_t *p_ext, bool b_unique, int i_command,
...
@@ -277,10 +277,12 @@ int __PushCommand( extension_t *p_ext, bool b_unique, int i_command,
}
}
if
(
!
b_skip
)
if
(
!
b_skip
)
{
{
if
(
!
b_unique
||
(
last
->
i_command
!=
i_command
)
||
memcmp
(
last
->
data
,
cmd
->
data
,
sizeof
(
cmd
->
data
)
)
!=
0
)
last
->
next
=
cmd
;
last
->
next
=
cmd
;
}
}
else
{
FreeCommands
(
cmd
);
}
}
}
vlc_cond_signal
(
&
p_ext
->
p_sys
->
wait
);
vlc_cond_signal
(
&
p_ext
->
p_sys
->
wait
);
...
@@ -394,8 +396,9 @@ static void* Run( void *data )
...
@@ -394,8 +396,9 @@ static void* Run( void *data )
}
}
vlc_mutex_lock
(
&
p_ext
->
p_sys
->
command_lock
);
vlc_mutex_lock
(
&
p_ext
->
p_sys
->
command_lock
);
if
(
cm
d
)
if
(
p_ext
->
p_sys
->
comman
d
)
{
{
cmd
=
p_ext
->
p_sys
->
command
;
p_ext
->
p_sys
->
command
=
cmd
->
next
;
p_ext
->
p_sys
->
command
=
cmd
->
next
;
cmd
->
next
=
NULL
;
// This prevents FreeCommands from freeing next
cmd
->
next
=
NULL
;
// This prevents FreeCommands from freeing next
FreeCommands
(
cmd
);
FreeCommands
(
cmd
);
...
...
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