28 lines
782 B
Diff
28 lines
782 B
Diff
From 25bfa5a0681d6b7eb88a98b229fc309465257358 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
|
|
Date: Tue, 26 Nov 2019 20:44:15 +0100
|
|
Subject: [PATCH 046/181] fp-device: Use g_clear_error instead of check + free
|
|
|
|
---
|
|
libfprint/fp-device.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c
|
|
index c9d1b89..0a1f8de 100644
|
|
--- a/libfprint/fp-device.c
|
|
+++ b/libfprint/fp-device.c
|
|
@@ -2342,9 +2342,8 @@ fpi_device_enroll_progress (FpDevice *device,
|
|
data->enroll_progress_data,
|
|
error);
|
|
}
|
|
- if (error)
|
|
- g_error_free (error);
|
|
|
|
+ g_clear_error (&error);
|
|
g_clear_object (&print);
|
|
}
|
|
|
|
--
|
|
2.24.1
|
|
|