diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 19:56:57 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | 1c30fa83500645286dd02931c91601bd69887b52 (patch) | |
tree | 9f99985a663a6193bde57a859a06ffe61a61940f | |
parent | 29a592f7fa28c9f1a522ad1a3ae3b1b870171f13 (diff) |
effectv/radioac: remove unnecessary NULL checks before g_free()
-rw-r--r-- | gst/effectv/gstradioac.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/gst/effectv/gstradioac.c b/gst/effectv/gstradioac.c index 244f98f23..1af42349b 100644 --- a/gst/effectv/gstradioac.c +++ b/gst/effectv/gstradioac.c @@ -439,28 +439,22 @@ gst_radioactv_set_info (GstVideoFilter * vfilter, GstCaps * incaps, filter->buf_margin_right = height - filter->buf_width - filter->buf_margin_left; - if (filter->blurzoombuf) - g_free (filter->blurzoombuf); + g_free (filter->blurzoombuf); filter->blurzoombuf = g_new0 (guint8, filter->buf_area * 2); - if (filter->blurzoomx) - g_free (filter->blurzoomx); + g_free (filter->blurzoomx); filter->blurzoomx = g_new0 (gint, filter->buf_width); - if (filter->blurzoomy) - g_free (filter->blurzoomy); + g_free (filter->blurzoomy); filter->blurzoomy = g_new0 (gint, filter->buf_height); - if (filter->snapframe) - g_free (filter->snapframe); + g_free (filter->snapframe); filter->snapframe = g_new (guint32, width * height); - if (filter->diff) - g_free (filter->diff); + g_free (filter->diff); filter->diff = g_new (guint8, width * height); - if (filter->background) - g_free (filter->background); + g_free (filter->background); filter->background = g_new0 (gint16, width * height); setTable (filter); @@ -490,28 +484,22 @@ gst_radioactv_finalize (GObject * object) { GstRadioacTV *filter = GST_RADIOACTV (object); - if (filter->snapframe) - g_free (filter->snapframe); + g_free (filter->snapframe); filter->snapframe = NULL; - if (filter->blurzoombuf) - g_free (filter->blurzoombuf); + g_free (filter->blurzoombuf); filter->blurzoombuf = NULL; - if (filter->diff) - g_free (filter->diff); + g_free (filter->diff); filter->diff = NULL; - if (filter->background) - g_free (filter->background); + g_free (filter->background); filter->background = NULL; - if (filter->blurzoomx) - g_free (filter->blurzoomx); + g_free (filter->blurzoomx); filter->blurzoomx = NULL; - if (filter->blurzoomy) - g_free (filter->blurzoomy); + g_free (filter->blurzoomy); filter->blurzoomy = NULL; G_OBJECT_CLASS (parent_class)->finalize (object); |