diff options
Diffstat (limited to '')
-rw-r--r-- | src/compress.c | 8 |
1 files 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 <glib.h> #include <stdint.h> #include <string.h> @@ -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) |