summaryrefslogtreecommitdiff
path: root/libsoup/soup-auth-digest.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-07-02 10:49:53 -0400
committerDan Winship <danw@gnome.org>2012-07-13 14:18:36 -0400
commit06f64f9db08ec4140b66c118f3fcf5edd6bdeec3 (patch)
tree040b1239f4680fe5ddb50396edc61d1e6072852d /libsoup/soup-auth-digest.c
parentdba99c7857d42189201f30ddcf77ed9962f2df31 (diff)
downloadlibsoup-06f64f9db08ec4140b66c118f3fcf5edd6bdeec3.tar.gz
Use g_clear_object(), g_clear_pointer()
Diffstat (limited to 'libsoup/soup-auth-digest.c')
-rw-r--r--libsoup/soup-auth-digest.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
index 90718c6c..487e4b56 100644
--- a/libsoup/soup-auth-digest.c
+++ b/libsoup/soup-auth-digest.c
@@ -60,14 +60,10 @@ finalize (GObject *object)
{
SoupAuthDigestPrivate *priv = SOUP_AUTH_DIGEST_GET_PRIVATE (object);
- if (priv->user)
- g_free (priv->user);
- if (priv->nonce)
- g_free (priv->nonce);
- if (priv->domain)
- g_free (priv->domain);
- if (priv->cnonce)
- g_free (priv->cnonce);
+ g_free (priv->user);
+ g_free (priv->nonce);
+ g_free (priv->domain);
+ g_free (priv->cnonce);
memset (priv->hex_urp, 0, sizeof (priv->hex_urp));
memset (priv->hex_a1, 0, sizeof (priv->hex_a1));