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
3455d5b0
Commit
3455d5b0
authored
Oct 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IFO: memory leak
parent
a2a5c539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/demux/playlist/ifo.c
modules/demux/playlist/ifo.c
+9
-9
No files found.
modules/demux/playlist/ifo.c
View file @
3455d5b0
...
...
@@ -84,22 +84,22 @@ void Close_IFO( vlc_object_t *p_this )
static
int
Demux
(
demux_t
*
p_demux
)
{
char
*
psz_url
=
NULL
;
size_t
len
=
0
;
input_item_t
*
p_input
;
size_t
len
=
strlen
(
"dvd://"
)
+
strlen
(
p_demux
->
psz_path
)
-
strlen
(
"VIDEO_TS.IFO"
)
;
char
*
psz_url
;
input_item_t
*
p_current_input
=
GetCurrentItem
(
p_demux
);
len
=
strlen
(
"dvd://"
)
+
strlen
(
p_demux
->
psz_path
)
-
strlen
(
"VIDEO_TS.IFO"
);
psz_url
=
(
char
*
)
malloc
(
len
+
1
);
psz_url
=
malloc
(
len
+
1
);
if
(
!
psz_url
)
return
0
;
snprintf
(
psz_url
,
len
+
1
,
"dvd://%s"
,
p_demux
->
psz_path
);
p_input
=
input_item_New
(
p_demux
,
psz_url
,
psz_url
);
input_item_t
*
p_current_input
=
GetCurrentItem
(
p_demux
);
input_item_t
*
p_input
=
input_item_New
(
p_demux
,
psz_url
,
psz_url
);
input_item_AddSubItem
(
p_current_input
,
p_input
);
vlc_gc_decref
(
p_input
);
vlc_gc_decref
(
p_current_input
);
free
(
psz_url
);
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