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
0813e08f
Commit
0813e08f
authored
Aug 29, 2012
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: fix some memory leaks.
parent
e7bfbd1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/control/rc.c
modules/control/rc.c
+4
-3
No files found.
modules/control/rc.c
View file @
0813e08f
...
...
@@ -1197,9 +1197,8 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
var_FreeList
(
&
val
,
&
text
);
msg_rc
(
"+----[ end of %s ]"
,
val_name
.
psz_string
);
free
(
val_name
.
psz_string
);
}
free
(
val_name
.
psz_string
);
}
out:
vlc_object_release
(
p_input
);
...
...
@@ -1733,6 +1732,7 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
if
(
var_Get
(
p_aout
,
psz_variable
,
&
val
)
<
0
)
{
vlc_object_release
(
p_aout
);
free
(
val_name
.
psz_string
);
return
VLC_EGENERIC
;
}
i_value
=
val
.
i_int
;
...
...
@@ -1741,6 +1741,7 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
VLC_VAR_GETLIST
,
&
val
,
&
text
)
<
0
)
{
vlc_object_release
(
p_aout
);
free
(
val_name
.
psz_string
);
return
VLC_EGENERIC
;
}
...
...
@@ -1757,7 +1758,6 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
var_FreeList
(
&
val
,
&
text
);
msg_rc
(
"+----[ end of %s ]"
,
val_name
.
psz_string
);
free
(
val_name
.
psz_string
);
i_error
=
VLC_SUCCESS
;
}
else
...
...
@@ -1767,6 +1767,7 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
i_error
=
var_Set
(
p_aout
,
psz_variable
,
val
);
}
free
(
val_name
.
psz_string
);
vlc_object_release
(
p_aout
);
return
i_error
;
...
...
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