Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9f26d456
Commit
9f26d456
authored
Mar 30, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a memory leak when media library is disabled
parent
d550023d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
src/playlist/loadsave.c
src/playlist/loadsave.c
+13
-4
No files found.
src/playlist/loadsave.c
View file @
9f26d456
...
...
@@ -114,11 +114,15 @@ static void input_item_subitem_added( const vlc_event_t * p_event,
int
playlist_MLLoad
(
playlist_t
*
p_playlist
)
{
char
*
psz_datadir
=
config_GetUserDataDir
()
;
char
*
psz_datadir
;
char
*
psz_uri
=
NULL
;
input_item_t
*
p_input
;
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
psz_datadir
=
config_GetUserDataDir
();
if
(
!
psz_datadir
)
/* XXX: This should never happen */
{
msg_Err
(
p_playlist
,
"no data directory, cannot load media library"
)
;
...
...
@@ -195,8 +199,13 @@ error:
int
playlist_MLDump
(
playlist_t
*
p_playlist
)
{
char
*
psz_datadir
=
config_GetUserDataDir
();
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
char
*
psz_datadir
;
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
psz_datadir
=
config_GetUserDataDir
();
if
(
!
psz_datadir
)
/* XXX: This should never happen */
{
msg_Err
(
p_playlist
,
"no data directory, cannot save media library"
)
;
...
...
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