From: Reynaldo H. Verdejo Pinochet Date: Sun, 15 Nov 2015 04:31:34 +0000 (-0800) Subject: rtp/jpegpay: remove unnecessary NULL checks before g_free() X-Git-Tag: 1.10.4~761 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c8b7e079c88af4d866118a2bf41d8802dc255e1;p=platform%2Fupstream%2Fgst-plugins-good.git rtp/jpegpay: remove unnecessary NULL checks before g_free() --- 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;