summaryrefslogtreecommitdiffstats
path: root/apps/rbcodec_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/rbcodec_helpers.c')
-rw-r--r--apps/rbcodec_helpers.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/rbcodec_helpers.c b/apps/rbcodec_helpers.c
index 78e068ded7..b856d7355d 100644
--- a/apps/rbcodec_helpers.c
+++ b/apps/rbcodec_helpers.c
@@ -87,10 +87,7 @@ void tdspeed_free_buffers(int32_t **buffers, int nbuf)
{
for (int i = 0; i < nbuf; i++)
{
- if (handles[i] > 0)
- core_free(handles[i]);
-
- handles[i] = 0;
+ handles[i] = core_free(handles[i]);
buffers[i] = NULL;
}
}