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
This commit is contained in:
Benjamin Berg 2019-12-06 16:30:34 +01:00
parent 8c5eede914
commit 788fd9ca7a
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}