aboutsummaryrefslogtreecommitdiffstats
path: root/screen_utils.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_utils.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_utils.c')
-rw-r--r--screen_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_utils.c b/screen_utils.c
index 61c212edc..b93069c22 100644
--- a/screen_utils.c
+++ b/screen_utils.c
@@ -56,7 +56,7 @@ screen_getstr(WINDOW *w, char *prompt)
curs_set(1);
if( wgetnstr(w, buf, 256) == OK )
- line = strdup(buf);
+ line = g_strdup(buf);
noecho();
curs_set(0);
@@ -90,7 +90,7 @@ screen_find(screen_t *screen,
case CMD_LIST_RFIND:
if( screen->findbuf )
{
- free(screen->findbuf);
+ g_free(screen->findbuf);
screen->findbuf=NULL;
}
/* continue... */