diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-17 15:23:17 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-18 16:05:42 -0800 |
commit | 86ec81242987d876ef0760b6d9201c79de9d1bf4 (patch) | |
tree | 7218eb94926339718084cf101ab76907d8912793 /sys/uvch264/gstuvch264_mjpgdemux.c | |
parent | 87b5ad0dfc2cca4c35337f85bc0f5b89fe462d6a (diff) | |
download | gstreamer-plugins-bad-86ec81242987d876ef0760b6d9201c79de9d1bf4.tar.gz |
Remove unnecessary NULL checks before g_free()
g_free() is NULL-safe
Diffstat (limited to 'sys/uvch264/gstuvch264_mjpgdemux.c')
-rw-r--r-- | sys/uvch264/gstuvch264_mjpgdemux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/uvch264/gstuvch264_mjpgdemux.c b/sys/uvch264/gstuvch264_mjpgdemux.c index 99734ad5a..1f9b1c405 100644 --- a/sys/uvch264/gstuvch264_mjpgdemux.c +++ b/sys/uvch264/gstuvch264_mjpgdemux.c @@ -296,8 +296,7 @@ gst_uvc_h264_mjpg_demux_dispose (GObject * object) if (self->priv->nv12_caps) gst_caps_unref (self->priv->nv12_caps); self->priv->nv12_caps = NULL; - if (self->priv->clock_samples) - g_free (self->priv->clock_samples); + g_free (self->priv->clock_samples); self->priv->clock_samples = NULL; G_OBJECT_CLASS (parent_class)->dispose (object); |