mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-05-05 06:38:02 +02:00
virtual-device: Use an autoptr to handle the new scan print
We may not use this print, so let's use an autoptr to handle its life cycle to clean it up when not used.
This commit is contained in:
parent
0b6a92150c
commit
669e091b03
1 changed files with 2 additions and 2 deletions
|
|
@ -526,8 +526,8 @@ dev_verify (FpDevice *dev)
|
|||
|
||||
if (scan_id)
|
||||
{
|
||||
g_autoptr(FpPrint) new_scan = NULL;
|
||||
GVariant *data = NULL;
|
||||
FpPrint *new_scan;
|
||||
FpPrint *print;
|
||||
gboolean success;
|
||||
|
||||
|
|
@ -556,7 +556,7 @@ dev_verify (FpDevice *dev)
|
|||
self->match_reported = TRUE;
|
||||
fpi_device_verify_report (dev,
|
||||
success ? FPI_MATCH_SUCCESS : FPI_MATCH_FAIL,
|
||||
new_scan,
|
||||
g_steal_pointer (&new_scan),
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue