[network-manager-applet/lr/pkcs11] fixup! libnma: add certificate chooser button



commit 6d76b26c37105563497c217771a3d034b3eb68c4
Author: Thomas Haller <thaller redhat com>
Date:   Thu Mar 2 23:44:31 2017 +0100

    fixup! libnma: add certificate chooser button

 src/libnma/nma-cert-chooser-button.c |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/libnma/nma-cert-chooser-button.c b/src/libnma/nma-cert-chooser-button.c
index 82bc279..1069d24 100644
--- a/src/libnma/nma-cert-chooser-button.c
+++ b/src/libnma/nma-cert-chooser-button.c
@@ -317,20 +317,9 @@ dispose (GObject *object)
                gtk_combo_box_set_model (GTK_COMBO_BOX (object), NULL);
        }
 
-       if (priv->title) {
-               g_free (priv->title);
-               priv->title = NULL;
-       }
-
-       if (priv->uri) {
-               g_free (priv->uri);
-               priv->uri = NULL;
-       }
-
-       if (priv->pin) {
-               g_free (priv->pin);
-               priv->pin = NULL;
-       }
+       nm_clear_g_free (&priv->title);
+       nm_clear_g_free (&priv->uri);
+       nm_clear_g_free (&priv->pin);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]