diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 16:20:33 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | c9039751f135d22fcb62a17848a8db00229422e3 (patch) | |
tree | 10514d66ac8f85b65b319dc88ca64ada2fed12c0 /ext/soup | |
parent | aaab7b6ab104f0378c2165787d7add83d81c8b0a (diff) |
souphttpsrc: remove unnecessary NULL checks before g_free()
Diffstat (limited to 'ext/soup')
-rw-r--r-- | ext/soup/gstsouphttpsrc.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 3852e9d09..fe945d5cd 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -520,9 +520,7 @@ gst_soup_http_src_finalize (GObject * gobject) g_mutex_clear (&src->mutex); g_cond_clear (&src->request_finished_cond); g_free (src->location); - if (src->redirection_uri) { - g_free (src->redirection_uri); - } + g_free (src->redirection_uri); g_free (src->user_agent); if (src->proxy != NULL) { soup_uri_free (src->proxy); @@ -571,8 +569,7 @@ gst_soup_http_src_set_property (GObject * object, guint prop_id, break; } case PROP_USER_AGENT: - if (src->user_agent) - g_free (src->user_agent); + g_free (src->user_agent); src->user_agent = g_value_dup_string (value); break; case PROP_IRADIO_MODE: @@ -600,23 +597,19 @@ gst_soup_http_src_set_property (GObject * object, guint prop_id, gst_base_src_set_live (GST_BASE_SRC (src), g_value_get_boolean (value)); break; case PROP_USER_ID: - if (src->user_id) - g_free (src->user_id); + g_free (src->user_id); src->user_id = g_value_dup_string (value); break; case PROP_USER_PW: - if (src->user_pw) - g_free (src->user_pw); + g_free (src->user_pw); src->user_pw = g_value_dup_string (value); break; case PROP_PROXY_ID: - if (src->proxy_id) - g_free (src->proxy_id); + g_free (src->proxy_id); src->proxy_id = g_value_dup_string (value); break; case PROP_PROXY_PW: - if (src->proxy_pw) - g_free (src->proxy_pw); + g_free (src->proxy_pw); src->proxy_pw = g_value_dup_string (value); break; case PROP_TIMEOUT: @@ -644,8 +637,7 @@ gst_soup_http_src_set_property (GObject * object, guint prop_id, src->ssl_strict = g_value_get_boolean (value); break; case PROP_SSL_CA_FILE: - if (src->ssl_ca_file) - g_free (src->ssl_ca_file); + g_free (src->ssl_ca_file); src->ssl_ca_file = g_value_dup_string (value); break; case PROP_SSL_USE_SYSTEM_CA_FILE: |