From 3c8b7e079c88af4d866118a2bf41d8802dc255e1 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sat, 14 Nov 2015 20:31:34 -0800 Subject: [PATCH] rtp/jpegpay: remove unnecessary NULL checks before g_free() --- gst/rtp/gstrtpjpegpay.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gst/rtp/gstrtpjpegpay.c b/gst/rtp/gstrtpjpegpay.c index 65fcb17..559065d 100644 --- a/gst/rtp/gstrtpjpegpay.c +++ b/gst/rtp/gstrtpjpegpay.c @@ -359,10 +359,8 @@ gst_rtp_jpeg_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps) res = gst_rtp_base_payload_set_outcaps (basepayload, NULL); } - if (dim != NULL) - g_free (dim); - if (rate != NULL) - g_free (rate); + g_free (dim); + g_free (rate); return res; -- 2.7.4