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
a67d563f
Commit
a67d563f
authored
Jan 26, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: fix potential leak (and missing unlock).
parent
f741dd1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
modules/misc/lua/extension_thread.c
modules/misc/lua/extension_thread.c
+6
-1
modules/misc/lua/libs/dialog.c
modules/misc/lua/libs/dialog.c
+3
-0
No files found.
modules/misc/lua/extension_thread.c
View file @
a67d563f
...
...
@@ -222,7 +222,12 @@ int PushCommand( extension_t *p_ext,
case
CMD_TRIGGERMENU
:
{
int
*
pi
=
malloc
(
sizeof
(
int
)
);
if
(
!
pi
)
return
VLC_ENOMEM
;
if
(
!
pi
)
{
free
(
cmd
);
vlc_mutex_unlock
(
&
p_ext
->
p_sys
->
command_lock
);
return
VLC_ENOMEM
;
}
*
pi
=
va_arg
(
args
,
int
);
cmd
->
data
[
0
]
=
pi
;
}
...
...
modules/misc/lua/libs/dialog.c
View file @
a67d563f
...
...
@@ -163,7 +163,10 @@ static int vlclua_dialog_create( lua_State *L )
lua_getglobal
(
L
,
"vlc"
);
lua_getfield
(
L
,
-
1
,
"__dialog"
);
if
(
lua_topointer
(
L
,
lua_gettop
(
L
)
)
!=
NULL
)
{
free
(
p_dlg
);
return
luaL_error
(
L
,
"Only one dialog allowed per extension!"
);
}
p_dlg
->
p_object
=
p_this
;
p_dlg
->
psz_title
=
strdup
(
psz_title
);
...
...
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