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
90763723
Commit
90763723
authored
Oct 23, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shout: fix a memory leak.
parent
6b7771a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/access_output/shout.c
modules/access_output/shout.c
+5
-3
No files found.
modules/access_output/shout.c
View file @
90763723
...
@@ -218,13 +218,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -218,13 +218,12 @@ static int Open( vlc_object_t *p_this )
{
{
msg_Err
(
p_access
,
"failed to initialize shout streaming to %s:%i/%s"
,
msg_Err
(
p_access
,
"failed to initialize shout streaming to %s:%i/%s"
,
url
.
psz_host
,
url
.
i_port
,
url
.
psz_path
);
url
.
psz_host
,
url
.
i_port
,
url
.
psz_path
);
free
(
p_access
->
p_sys
);
free
(
psz_name
);
free
(
psz_name
);
free
(
psz_description
);
free
(
psz_description
);
free
(
psz_genre
);
free
(
psz_genre
);
free
(
psz_url
);
free
(
psz_url
);
vlc_UrlClean
(
&
url
);
goto
error
;
return
VLC_EGENERIC
;
}
}
free
(
psz_name
);
free
(
psz_name
);
...
@@ -397,6 +396,8 @@ static int Open( vlc_object_t *p_this )
...
@@ -397,6 +396,8 @@ static int Open( vlc_object_t *p_this )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
error:
error:
if
(
p_sys
->
p_shout
)
shout_free
(
p_sys
->
p_shout
);
vlc_UrlClean
(
&
url
);
vlc_UrlClean
(
&
url
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -413,6 +414,7 @@ static void Close( vlc_object_t * p_this )
...
@@ -413,6 +414,7 @@ static void Close( vlc_object_t * p_this )
if
(
p_sys
->
p_shout
)
if
(
p_sys
->
p_shout
)
{
{
shout_close
(
p_sys
->
p_shout
);
shout_close
(
p_sys
->
p_shout
);
shout_free
(
p_sys
->
p_shout
);
shout_shutdown
();
shout_shutdown
();
}
}
free
(
p_sys
);
free
(
p_sys
);
...
...
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