Mercurial > hg > dmlib
changeset 53:a83f7c4d9e08
No need to allocate with dmCalloc, when a plain dmMalloc is fine.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 01 Oct 2012 04:18:03 +0300 |
parents | 1d17ecc5486c |
children | 65cdb4de6fd8 |
files | jssmix.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jssmix.c Mon Oct 01 04:17:42 2012 +0300 +++ b/jssmix.c Mon Oct 01 04:18:03 2012 +0300 @@ -149,7 +149,7 @@ // Allocate addBuffer mixer->addBufSize = outChannels * outFreq; - mixer->addBuffer = dmCalloc(mixer->addBufSize, sizeof(JMIXER_ADDBUF_TYPE)); + mixer->addBuffer = dmMalloc(mixer->addBufSize * sizeof(JMIXER_ADDBUF_TYPE)); if (mixer->addBuffer == NULL) { JSSERROR(DMERR_MALLOC, NULL,