Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f3903fca
Commit
f3903fca
authored
Dec 23, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/demux/playlist/*.c: Fix input_item memleaks.
parent
5b324033
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
16 additions
and
3 deletions
+16
-3
modules/demux/playlist/asx.c
modules/demux/playlist/asx.c
+1
-0
modules/demux/playlist/b4s.c
modules/demux/playlist/b4s.c
+1
-0
modules/demux/playlist/dvb.c
modules/demux/playlist/dvb.c
+1
-1
modules/demux/playlist/gvp.c
modules/demux/playlist/gvp.c
+1
-0
modules/demux/playlist/ifo.c
modules/demux/playlist/ifo.c
+1
-0
modules/demux/playlist/itml.c
modules/demux/playlist/itml.c
+2
-1
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+1
-0
modules/demux/playlist/pls.c
modules/demux/playlist/pls.c
+2
-0
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+1
-0
modules/demux/playlist/qtl.c
modules/demux/playlist/qtl.c
+2
-0
modules/demux/playlist/sgimb.c
modules/demux/playlist/sgimb.c
+1
-0
modules/demux/playlist/shoutcast.c
modules/demux/playlist/shoutcast.c
+2
-1
No files found.
modules/demux/playlist/asx.c
View file @
f3903fca
...
...
@@ -527,6 +527,7 @@ static int Demux( demux_t *p_demux )
if
(
psz_moreinfo_entry
)
input_item_SetURL
(
p_entry
,
psz_moreinfo_entry
);
if
(
psz_abstract_entry
)
input_item_SetDescription
(
p_entry
,
psz_abstract_entry
);
input_ItemAddSubItem
(
p_current_input
,
p_entry
);
vlc_gc_decref
(
p_entry
);
}
/* cleanup entry */
;
...
...
modules/demux/playlist/b4s.c
View file @
f3903fca
...
...
@@ -266,6 +266,7 @@ static int Demux( demux_t *p_demux )
msg_Err
(
p_playlist
,
"Unsupported meta bitrate"
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
FREENULL
(
psz_name
);
FREENULL
(
psz_mrl
);
FREENULL
(
psz_genre
);
...
...
modules/demux/playlist/dvb.c
View file @
f3903fca
...
...
@@ -119,7 +119,7 @@ static int Demux( demux_t *p_demux )
input_ItemAddOption
(
p_input
,
ppsz_options
[
i
]
);
}
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
while
(
i_options
--
)
free
(
ppsz_options
[
i_options
]
);
if
(
ppsz_options
)
free
(
ppsz_options
);
...
...
modules/demux/playlist/gvp.c
View file @
f3903fca
...
...
@@ -210,6 +210,7 @@ static int Demux( demux_t *p_demux )
SADD_INFO
(
"docid"
,
psz_docid
);
SADD_INFO
(
"description"
,
psz_description
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
}
HANDLE_PLAY_AND_RELEASE
;
...
...
modules/demux/playlist/ifo.c
View file @
f3903fca
...
...
@@ -92,6 +92,7 @@ static int Demux( demux_t *p_demux )
p_input
=
input_ItemNewExt
(
p_playlist
,
psz_url
,
psz_url
,
0
,
NULL
,
-
1
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
HANDLE_PLAY_AND_RELEASE
;
...
...
modules/demux/playlist/itml.c
View file @
f3903fca
...
...
@@ -378,7 +378,8 @@ static vlc_bool_t parse_track_dict COMPLEX_INTERFACE
/* add meta info */
add_meta
(
p_new_input
,
p_track
);
vlc_gc_decref
(
p_new_input
);
p_demux
->
p_sys
->
i_ntracks
++
;
}
else
...
...
modules/demux/playlist/m3u.c
View file @
f3903fca
...
...
@@ -192,6 +192,7 @@ static int Demux( demux_t *p_demux )
input_ItemAddInfo
(
p_input
,
_
(
VLC_META_INFO_CAT
),
_
(
VLC_META_ARTIST
),
"%s"
,
psz_artist
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
free
(
psz_mrl
);
}
...
...
modules/demux/playlist/pls.c
View file @
f3903fca
...
...
@@ -162,6 +162,7 @@ static int Demux( demux_t *p_demux )
0
,
NULL
,
-
1
);
input_ItemCopyOptions
(
p_current_input
,
p_input
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
}
else
{
...
...
@@ -221,6 +222,7 @@ static int Demux( demux_t *p_demux )
p_input
=
input_ItemNewExt
(
p_playlist
,
psz_mrl
,
psz_name
,
0
,
NULL
,
-
1
);
input_ItemCopyOptions
(
p_current_input
,
p_input
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
free
(
psz_mrl_orig
);
psz_mrl
=
NULL
;
}
...
...
modules/demux/playlist/podcast.c
View file @
f3903fca
...
...
@@ -289,6 +289,7 @@ static int Demux( demux_t *p_demux )
psz_item_size
);
}
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
FREENULL
(
psz_item_name
);
FREENULL
(
psz_item_mrl
);
FREENULL
(
psz_item_size
);
...
...
modules/demux/playlist/qtl.c
View file @
f3903fca
...
...
@@ -357,11 +357,13 @@ static int Demux( demux_t *p_demux )
SADD_INFO
(
"href"
,
psz_href
);
SADD_INFO
(
"mime type"
,
psz_mimetype
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
if
(
psz_qtnext
)
{
p_input
=
input_ItemNewExt
(
p_sys
->
p_playlist
,
psz_qtnext
,
NULL
,
0
,
NULL
,
-
1
);
input_ItemAddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
}
}
...
...
modules/demux/playlist/sgimb.c
View file @
f3903fca
...
...
@@ -405,6 +405,7 @@ static int Demux ( demux_t *p_demux )
}
input_ItemAddSubItem
(
p_current_input
,
p_child
);
vlc_gc_decref
(
p_child
);
HANDLE_PLAY_AND_RELEASE
return
0
;
/* Needed for correct operation of go back */
}
...
...
modules/demux/playlist/shoutcast.c
View file @
f3903fca
...
...
@@ -236,6 +236,7 @@ static int DemuxGenre( demux_t *p_demux )
p_input
);
free
(
psz_mrl
);
input_ItemAddSubItem
(
p_sys
->
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
FREENULL
(
psz_name
);
}
FREENULL
(
psz_eltname
);
...
...
@@ -423,7 +424,7 @@ static int DemuxStation( demux_t *p_demux )
if
(
psz_rt
)
input_item_SetRating
(
p_input
,
psz_rt
);
input_ItemAddSubItem
(
p_sys
->
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
FREENULL
(
psz_name
);
FREENULL
(
psz_mt
);
FREENULL
(
psz_id
);
...
...
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