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
f2157f9d
Commit
f2157f9d
authored
Oct 06, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a lot of memleaks (and CID 68 in the same time).
Also #undef some local macros. Still a lot of potential memleaks.
parent
eca65494
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+10
-1
No files found.
modules/demux/playlist/podcast.c
View file @
f2157f9d
...
...
@@ -180,21 +180,25 @@ static int Demux( demux_t *p_demux )
{
free
(
psz_name
);
free
(
psz_value
);
free
(
psz_elname
);
return
-
1
;
}
if
(
!
strcmp
(
psz_elname
,
"enclosure"
)
&&
!
strcmp
(
psz_name
,
"url"
)
)
{
free
(
psz_item_mrl
);
psz_item_mrl
=
strdup
(
psz_value
);
}
else
if
(
!
strcmp
(
psz_elname
,
"enclosure"
)
&&
!
strcmp
(
psz_name
,
"length"
)
)
{
free
(
psz_item_size
);
psz_item_size
=
strdup
(
psz_value
);
}
else
if
(
!
strcmp
(
psz_elname
,
"enclosure"
)
&&
!
strcmp
(
psz_name
,
"type"
)
)
{
free
(
psz_item_type
);
psz_item_type
=
strdup
(
psz_value
);
}
else
...
...
@@ -237,6 +241,7 @@ static int Demux( demux_t *p_demux )
SET_DATA
(
psz_item_duration
,
"itunes:duration"
)
SET_DATA
(
psz_item_keywords
,
"itunes:keywords"
)
SET_DATA
(
psz_item_subtitle
,
"itunes:subtitle"
)
#undef SET_DATA
/* toplevel meta data */
else
if
(
b_item
==
false
&&
b_image
==
false
&&
!
strcmp
(
psz_elname
,
"title"
)
)
...
...
@@ -283,6 +288,7 @@ static int Demux( demux_t *p_demux )
if
(
psz_item_mrl
==
NULL
)
{
msg_Err
(
p_demux
,
"invalid XML (no enclosure markup)"
);
free
(
psz_elname
);
return
-
1
;
}
p_input
=
input_item_NewExt
(
p_demux
,
psz_item_mrl
,
...
...
@@ -299,6 +305,7 @@ static int Demux( demux_t *p_demux )
ADD_INFO
(
"Podcast Subtitle"
,
psz_item_subtitle
);
ADD_INFO
(
"Podcast Summary"
,
psz_item_summary
);
ADD_INFO
(
"Podcast Type"
,
psz_item_type
);
#undef ADD_INFO
if
(
psz_item_size
)
{
input_item_AddInfo
(
p_input
,
...
...
@@ -327,7 +334,7 @@ static int Demux( demux_t *p_demux )
b_image
=
false
;
}
free
(
psz_elname
);
psz_elname
=
strdup
(
""
);
psz_elname
=
strdup
(
""
);
break
;
}
...
...
@@ -339,6 +346,8 @@ static int Demux( demux_t *p_demux )
msg_Warn
(
p_demux
,
"error while parsing data"
);
}
free
(
psz_elname
);
HANDLE_PLAY_AND_RELEASE
;
return
0
;
/* Needed for correct operation of go back */
}
...
...
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