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
a3670b8f
Commit
a3670b8f
authored
Feb 28, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua SD: fix leaking
parent
92661c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/misc/lua/libs/sd.c
modules/misc/lua/libs/sd.c
+8
-0
No files found.
modules/misc/lua/libs/sd.c
View file @
a3670b8f
...
...
@@ -189,6 +189,10 @@ static int vlclua_sd_add_item( lua_State *L )
lua_setfield
(
L
,
-
2
,
"__metatable"
);
}
lua_setmetatable
(
L
,
-
2
);
vlc_gc_decref
(
p_input
);
while
(
i_options
>
0
)
free
(
ppsz_options
[
--
i_options
]
);
free
(
ppsz_options
);
}
else
msg_Err
(
p_sd
,
"vlc.sd.add_item: the
\"
path
\"
parameter can't be empty"
);
...
...
@@ -254,6 +258,10 @@ static int vlclua_node_add_subitem( lua_State *L )
lua_setfield
(
L
,
-
2
,
"__metatable"
);
}
lua_setmetatable
(
L
,
-
2
);
vlc_gc_decref
(
p_input
);
while
(
i_options
>
0
)
free
(
ppsz_options
[
--
i_options
]
);
free
(
ppsz_options
);
}
else
msg_Err
(
p_sd
,
"node:add_subitem: the
\"
path
\"
parameter can't be empty"
);
...
...
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