Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
b8f8238f
Commit
b8f8238f
authored
4 years ago
by
George Kiagiadakis
Browse files
Options
Downloads
Patches
Plain Diff
lua: fix some nasty memory leaks
parent
7233b7a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/module-lua-scripting/api.c
+2
-2
2 additions, 2 deletions
modules/module-lua-scripting/api.c
src/config/desktop-ep/policy-endpoint.lua
+1
-1
1 addition, 1 deletion
src/config/desktop-ep/policy-endpoint.lua
with
3 additions
and
3 deletions
modules/module-lua-scripting/api.c
+
2
−
2
View file @
b8f8238f
...
...
@@ -139,7 +139,7 @@ static int
iterator_next
(
lua_State
*
L
)
{
WpIterator
*
it
=
wplua_checkboxed
(
L
,
1
,
WP_TYPE_ITERATOR
);
GValue
v
=
G_VALUE_INIT
;
g_auto
(
GValue
)
v
=
G_VALUE_INIT
;
if
(
wp_iterator_next
(
it
,
&
v
))
{
return
wplua_gvalue_to_lua
(
L
,
&
v
);
}
else
{
...
...
@@ -162,7 +162,7 @@ static int
metadata_iterator_next
(
lua_State
*
L
)
{
WpIterator
*
it
=
wplua_checkboxed
(
L
,
1
,
WP_TYPE_ITERATOR
);
GValue
item
=
G_VALUE_INIT
;
g_auto
(
GValue
)
item
=
G_VALUE_INIT
;
if
(
wp_iterator_next
(
it
,
&
item
))
{
guint32
s
=
0
;
const
gchar
*
k
=
NULL
,
*
t
=
NULL
,
*
v
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
src/config/desktop-ep/policy-endpoint.lua
+
1
−
1
View file @
b8f8238f
...
...
@@ -96,7 +96,7 @@ function handleEndpoint (session, ep)
end
-- if not, find a suitable target and link
target
=
findTarget
(
session
,
ep
)
local
target
=
findTarget
(
session
,
ep
)
if
target
then
local
ep_is_output
=
(
ep
.
direction
==
"output"
)
local
target_id
=
target
[
'bound-id'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment