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/pvr2d | |
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/pvr2d')
-rw-r--r-- | sys/pvr2d/gstpvrvideosink.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/pvr2d/gstpvrvideosink.c b/sys/pvr2d/gstpvrvideosink.c index 6d117fb90..7c1024376 100644 --- a/sys/pvr2d/gstpvrvideosink.c +++ b/sys/pvr2d/gstpvrvideosink.c @@ -1316,11 +1316,8 @@ gst_pvrvideosink_dcontext_free (GstDrawContext * dcontext) { GST_DEBUG ("Freeing dcontext %p", dcontext); - if (dcontext->p_blt_info) - g_free (dcontext->p_blt_info); - - if (dcontext->p_blt2d_info) - g_free (dcontext->p_blt2d_info); + g_free (dcontext->p_blt_info); + g_free (dcontext->p_blt2d_info); if (dcontext->x_lock) g_mutex_lock (dcontext->x_lock); |