30 lines
871 B
Diff
30 lines
871 B
Diff
From 13b89d8d01b9c0eaa83663d66f0955263966cd6c Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Berg <bberg@redhat.com>
|
|
Date: Fri, 6 Dec 2019 16:30:34 +0100
|
|
Subject: [PATCH 134/181] elan: Do not leak converted frames
|
|
|
|
The elan driver converts frames into a different format. These frames
|
|
are only needed to assemable the image and should be free'ed afterwards.
|
|
|
|
Fixes: #213
|
|
---
|
|
libfprint/drivers/elan.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/libfprint/drivers/elan.c b/libfprint/drivers/elan.c
|
|
index 9495a48..415aaef 100644
|
|
--- a/libfprint/drivers/elan.c
|
|
+++ b/libfprint/drivers/elan.c
|
|
@@ -321,6 +321,8 @@ elan_submit_image (FpImageDevice *dev)
|
|
fpi_do_movement_estimation (&assembling_ctx, frames);
|
|
img = fpi_assemble_frames (&assembling_ctx, frames);
|
|
|
|
+ g_slist_free_full (frames, g_free);
|
|
+
|
|
fpi_image_device_image_captured (dev, img);
|
|
}
|
|
|
|
--
|
|
2.24.1
|
|
|