diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-28 21:27:11 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-28 21:27:11 +0000 |
commit | 8a7c44223cbea87ef27a2f9f876a2cdaba8abec3 (patch) | |
tree | 18b79715c5c40be941496cfd0758ce7341da5f30 /list_window.c | |
parent | e77407bf104d05c537f8f556ad9702ea98224d3c (diff) | |
download | mpd-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 'list_window.c')
-rw-r--r-- | list_window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list_window.c b/list_window.c index d976ce05c..b04b817da 100644 --- a/list_window.c +++ b/list_window.c @@ -14,7 +14,7 @@ list_window_init(WINDOW *w, int width, int height) { list_window_t *lw; - lw = malloc(sizeof(list_window_t)); + lw = g_malloc(sizeof(list_window_t)); memset(lw, 0, sizeof(list_window_t)); lw->w = w; lw->cols = width; @@ -29,7 +29,7 @@ list_window_free(list_window_t *lw) if( lw ) { memset(lw, 0, sizeof(list_window_t)); - free(lw); + g_free(lw); } return NULL; } |