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
c235fa52
Commit
c235fa52
authored
Feb 04, 2010
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensions: fix leak: free commands
parent
2e028db6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/misc/lua/extension_thread.c
modules/misc/lua/extension_thread.c
+3
-1
No files found.
modules/misc/lua/extension_thread.c
View file @
c235fa52
...
...
@@ -285,6 +285,7 @@ static void* Run( void *data )
if
(
cmd
)
{
p_ext
->
p_sys
->
command
=
cmd
->
next
;
cmd
->
next
=
NULL
;
// This prevents FreeCommands from freeing next
}
vlc_mutex_unlock
(
&
p_ext
->
p_sys
->
command_lock
);
...
...
@@ -346,7 +347,6 @@ static void* Run( void *data )
msg_Dbg
(
p_mgr
,
"Trigger menu %d of '%s'"
,
*
pi_id
,
p_ext
->
psz_name
);
lua_ExtensionTriggerMenu
(
p_mgr
,
p_ext
,
*
pi_id
);
free
(
pi_id
);
break
;
}
...
...
@@ -373,6 +373,8 @@ static void* Run( void *data )
}
}
FreeCommands
(
cmd
);
vlc_mutex_lock
(
&
p_ext
->
p_sys
->
command_lock
);
if
(
!
p_ext
->
p_sys
->
b_exiting
&&
!
p_ext
->
p_sys
->
command
)
{
...
...
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