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
75a1834d
Commit
75a1834d
authored
Aug 01, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdda/info: fix memleaks.
parent
943b5ccc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
modules/access/cdda/info.c
modules/access/cdda/info.c
+15
-15
No files found.
modules/access/cdda/info.c
View file @
75a1834d
...
...
@@ -73,15 +73,15 @@ GetCDDBInfo( access_t *p_access, cdda_data_t *p_cdda )
goto
cddb_destroy
;
}
cddb_set_email_address
(
conn
,
config_GetPsz
(
p_access
,
MODULE_STRING
"-cddb-email"
)
);
cddb_set_server_name
(
conn
,
config_GetPsz
(
p_access
,
MODULE_STRING
"-cddb-server"
)
);
char
*
psz_email
=
config_GetPsz
(
p_access
,
MODULE_STRING
"-cddb-email"
);
char
*
psz_srv_name
=
config_GetPsz
(
p_access
,
MODULE_STRING
"-cddb-server"
);
cddb_set_email_address
(
conn
,
psz_email
);
cddb_set_server_name
(
conn
,
psz_srv_name
);
cddb_set_server_port
(
conn
,
config_GetInt
(
p_access
,
MODULE_STRING
"-cddb-port"
)
);
free
(
psz_email
);
free
(
psz_srv_name
);
/* Set the location of the local CDDB cache directory.
The default location of this directory is */
...
...
@@ -89,9 +89,9 @@ GetCDDBInfo( access_t *p_access, cdda_data_t *p_cdda )
if
(
!
config_GetInt
(
p_access
,
MODULE_STRING
"-cddb-enable-cache"
))
cddb_cache_disable
(
conn
);
c
ddb_cache_set_dir
(
conn
,
config_GetPsz
(
p_access
,
MODULE_STRING
"-cddb-cachedir"
)
);
c
har
*
psz_cache
=
config_GetPsz
(
p_access
,
MODULE_STRING
"-cddb-cachedir"
);
cddb_cache_set_dir
(
conn
,
psz_cache
);
free
(
psz_cache
);
cddb_set_timeout
(
conn
,
config_GetInt
(
p_access
,
MODULE_STRING
"-cddb-timeout"
)
);
...
...
@@ -797,14 +797,14 @@ CDDAFormatTitle( const access_t *p_access, track_t i_track )
config_varname
=
MODULE_STRING
"-cddb-title-format"
;
}
#endif
/*HAVE_LIBCDDB*/
psz_name
=
CDDAFormatStr
(
p_access
,
p_cdda
,
config_GetPsz
(
p_access
,
config_varname
),
char
*
psz_config_varname
=
config_GetPsz
(
p_access
,
config_varname
);
psz_name
=
CDDAFormatStr
(
p_access
,
p_cdda
,
psz_config_varname
,
psz_mrl
,
i_track
);
free
(
psz_mrl
);
free
(
psz_config_varname
);
free
(
psz_mrl
);
return
psz_name
;
}
return
(
NULL
)
;
return
NULL
;
}
static
playlist_item_t
*
...
...
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