From 3f70bde21c91de0d42eb476e1c2edd6a6eeeed46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 17 Jun 2024 20:59:45 +0200 Subject: [PATCH] fp-device: Do not duplicate udev paths strings This is happening already internally when using g_value_set_string --- libfprint/fp-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c index c1436448..d09b24e3 100644 --- a/libfprint/fp-device.c +++ b/libfprint/fp-device.c @@ -292,14 +292,14 @@ fp_device_get_property (GObject *object, case PROP_FPI_UDEV_DATA_SPIDEV: if (cls->type == FP_DEVICE_TYPE_UDEV) - g_value_set_string (value, g_strdup (priv->udev_data.spidev_path)); + g_value_set_string (value, priv->udev_data.spidev_path); else g_value_set_string (value, NULL); break; case PROP_FPI_UDEV_DATA_HIDRAW: if (cls->type == FP_DEVICE_TYPE_UDEV) - g_value_set_string (value, g_strdup (priv->udev_data.hidraw_path)); + g_value_set_string (value, priv->udev_data.hidraw_path); else g_value_set_string (value, NULL); break;