summaryrefslogtreecommitdiff
path: root/sys/acmmp3dec
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-17 15:23:17 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-18 16:05:42 -0800
commit86ec81242987d876ef0760b6d9201c79de9d1bf4 (patch)
tree7218eb94926339718084cf101ab76907d8912793 /sys/acmmp3dec
parent87b5ad0dfc2cca4c35337f85bc0f5b89fe462d6a (diff)
downloadgstreamer-plugins-bad-86ec81242987d876ef0760b6d9201c79de9d1bf4.tar.gz
Remove unnecessary NULL checks before g_free()
g_free() is NULL-safe
Diffstat (limited to 'sys/acmmp3dec')
-rw-r--r--sys/acmmp3dec/acmmp3dec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/acmmp3dec/acmmp3dec.c b/sys/acmmp3dec/acmmp3dec.c
index e6d34baa7..737d4a001 100644
--- a/sys/acmmp3dec/acmmp3dec.c
+++ b/sys/acmmp3dec/acmmp3dec.c
@@ -201,10 +201,8 @@ acmmp3dec_teardown (ACMMP3Dec * dec)
if (dec->header.fdwStatus & ACMSTREAMHEADER_STATUSF_PREPARED)
acmStreamUnprepareHeader (dec->stream, &dec->header, 0);
- if (dec->header.pbSrc)
- g_free (dec->header.pbSrc);
- if (dec->header.pbDst)
- g_free (dec->header.pbDst);
+ g_free (dec->header.pbSrc);
+ g_free (dec->header.pbDst);
memset (&dec->header, 0, sizeof (dec->header));
if (dec->stream) {