rtp/jpegpay: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
a34cee5aad
commit
3c8b7e079c
@ -359,10 +359,8 @@ gst_rtp_jpeg_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
|
|||||||
res = gst_rtp_base_payload_set_outcaps (basepayload, NULL);
|
res = gst_rtp_base_payload_set_outcaps (basepayload, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dim != NULL)
|
g_free (dim);
|
||||||
g_free (dim);
|
g_free (rate);
|
||||||
if (rate != NULL)
|
|
||||||
g_free (rate);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user