aboutsummaryrefslogtreecommitdiffstats
path: root/screen_play.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-28 21:27:11 +0000
committerKalle Wallin <kaw@linux.se>2004-03-28 21:27:11 +0000
commit8a7c44223cbea87ef27a2f9f876a2cdaba8abec3 (patch)
tree18b79715c5c40be941496cfd0758ce7341da5f30 /screen_play.c
parente77407bf104d05c537f8f556ad9702ea98224d3c (diff)
downloadmpd-8a7c44223cbea87ef27a2f9f876a2cdaba8abec3.tar.gz
mpd-8a7c44223cbea87ef27a2f9f876a2cdaba8abec3.tar.xz
mpd-8a7c44223cbea87ef27a2f9f876a2cdaba8abec3.zip
We now allocate and free memory with glib
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@526 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen_play.c')
-rw-r--r--screen_play.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screen_play.c b/screen_play.c
index 5f93ad093..72c223ed3 100644
--- a/screen_play.c
+++ b/screen_play.c
@@ -50,7 +50,7 @@ handle_save_playlist(screen_t *screen, mpd_client_t *c)
/* send save command to mpd */
mpd_sendSaveCommand(c->connection, filename_utf8);
mpd_finishCommand(c->connection);
- free(filename_utf8);
+ g_free(filename_utf8);
/* handle errors */
if( mpc_error(c))
{
@@ -58,7 +58,7 @@ handle_save_playlist(screen_t *screen, mpd_client_t *c)
{
char *str = utf8_to_locale(mpc_error_str(c));
screen_status_message(str);
- free(str);
+ g_free(str);
}
else
screen_status_printf("Error: Unable to save playlist as %s", filename);
@@ -68,7 +68,7 @@ handle_save_playlist(screen_t *screen, mpd_client_t *c)
}
/* success */
screen_status_printf("Saved %s", filename);
- free(filename);
+ g_free(filename);
/* update the file list if it has been initalized */
if( c->filelist )
{