changeset 526:5fa8b0ca6d61 trunk

[svn] - metronom: use g_malloc in place of malloc
author giacomo
date Mon, 22 Jan 2007 14:56:02 -0800
parents c91f3d7cd641
children d124034ebea3
files ChangeLog src/metronom/metronom.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 22 14:52:22 2007 -0800
+++ b/ChangeLog	Mon Jan 22 14:56:02 2007 -0800
@@ -1,3 +1,10 @@
+2007-01-22 22:52:22 +0000  Giacomo Lozito <james@develia.org>
+  revision [1136]
+  - mpg123: fix warnings in compilation, added function prototype to common.h
+  trunk/src/mpg123/common.h |    2 ++
+  1 file changed, 2 insertions(+)
+
+
 2007-01-22 21:35:34 +0000  Giacomo Lozito <james@develia.org>
   revision [1134]
   - flac 112 plugin: last fix; hopefully, everything is ok now; for both 112 and 113 playback works and http stream works
--- a/src/metronom/metronom.c	Mon Jan 22 14:52:22 2007 -0800
+++ b/src/metronom/metronom.c	Mon Jan 22 14:56:02 2007 -0800
@@ -159,7 +159,7 @@
 	metronom_t *pmetronom;
 	gint flag,id;
 
-	pmetronom=(metronom_t *)malloc(sizeof(metronom_t));
+	pmetronom=(metronom_t *)g_malloc(sizeof(metronom_t));
 	if(!pmetronom)return;
 
 	count=sscanf(filename, "tact://%d*%d/%d", &pmetronom->bpm,&pmetronom->num,&pmetronom->den);