summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-12-09 12:41:32 +0100
committerBastien Nocera <hadess@hadess.net>2022-12-09 12:41:32 +0100
commit9622823cc1c594a88a03cdf85ac03503c1e492cb (patch)
treefcdb756bc78358f19518c5a1710afdb85d8f82c4
parentd491b2ad6a4d5a23ea64de6468ba51c5b8d08032 (diff)
downloadgnome-bluetooth-9622823cc1c594a88a03cdf85ac03503c1e492cb.tar.gz
pairing-dialog: Use g_autofree
-rw-r--r--lib/bluetooth-pairing-dialog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index ffc05b6d..42cb57f7 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -184,7 +184,7 @@ bluetooth_pairing_dialog_set_pin_entered (BluetoothPairingDialog *self,
guint entered)
{
BluetoothPairingDialogPrivate *priv = BLUETOOTH_PAIRING_DIALOG_GET_PRIVATE (self);
- char *done;
+ g_autofree char *done = NULL;
g_assert (priv->mode == BLUETOOTH_PAIRING_MODE_PIN_DISPLAY_KEYBOARD);
g_assert (priv->pin);
@@ -208,7 +208,6 @@ bluetooth_pairing_dialog_set_pin_entered (BluetoothPairingDialog *self,
}
gtk_label_set_text (GTK_LABEL (priv->label_pin), done);
- g_free (done);
}
static void