diff options
-rw-r--r-- | lib/bluetooth-pairing-dialog.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c index 42cb57f7..bf427da8 100644 --- a/lib/bluetooth-pairing-dialog.c +++ b/lib/bluetooth-pairing-dialog.c @@ -249,7 +249,7 @@ text_changed_cb (GObject *gobject, static void bluetooth_pairing_dialog_init (BluetoothPairingDialog *self) { - GtkCssProvider *provider; + g_autoptr(GtkCssProvider) provider = NULL; gtk_widget_init_template (GTK_WIDGET (self)); @@ -261,8 +261,6 @@ bluetooth_pairing_dialog_init (BluetoothPairingDialog *self) gtk_style_context_add_provider_for_display (gdk_display_get_default (), GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_USER); - g_object_unref (provider); - } static void |