From 457301d97b9041747c8c019ab1e108b883bc85cc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Jan 2009 14:52:59 +0100 Subject: [PATCH] compress: use GLib instead of utils.h --- src/compress.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compress.c b/src/compress.c index b561cb045..ccc7ccfc6 100644 --- a/src/compress.c +++ b/src/compress.c @@ -21,7 +21,8 @@ */ #include "compress.h" -#include "utils.h" + +#include #include #include @@ -66,7 +67,7 @@ void CompressCfg(int show_mon, int anticlip, int target, int gainmax, prefs.buckets = buckets; /* Allocate the peak structure */ - peaks = xrealloc(peaks, sizeof(int)*prefs.buckets); + peaks = g_realloc(peaks, sizeof(int)*prefs.buckets); if (prefs.buckets > lastsize) memset(peaks + lastsize, 0, sizeof(int)*(prefs.buckets @@ -165,8 +166,7 @@ void CompressFree(void) } #endif - if (peaks) - free(peaks); + g_free(peaks); } void CompressDo(void *data, unsigned int length)