diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-12-06 16:30:34 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2019-12-16 11:41:22 +0100 |
commit | 788fd9ca7af353942848f4d920b88a019e0987c3 (patch) | |
tree | 86f17a10a40cc837f95ae420cf21ffe476eb5e8d | |
parent | 8c5eede914fb344dc7851927398f4d78e8a0be8a (diff) |
elan: Do not leak converted framesbenzea/misc-fixes
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
-rw-r--r-- | libfprint/drivers/elan.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |