Blame SOURCES/0172-device-Fix-potential-memory-leak-of-progress_cb-user.patch

73b847
From bd891b9c3ed6289d3499b084653942c595920f2c Mon Sep 17 00:00:00 2001
73b847
From: Benjamin Berg <bberg@redhat.com>
73b847
Date: Mon, 23 Dec 2019 23:55:55 +0100
73b847
Subject: [PATCH 172/181] device: Fix potential memory leak of progress_cb user
73b847
 data
73b847
73b847
The progress report user data free func was not assigned and therefore
73b847
never called. Add the missing assign, potentially fixing memory leaks
73b847
(mostly relevant for bindings).
73b847
---
73b847
 libfprint/fp-device.c | 1 +
73b847
 1 file changed, 1 insertion(+)
73b847
73b847
diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c
73b847
index 116f9f8..634c2cc 100644
73b847
--- a/libfprint/fp-device.c
73b847
+++ b/libfprint/fp-device.c
73b847
@@ -775,6 +775,7 @@ fp_device_enroll (FpDevice           *device,
73b847
   data->print = g_object_ref_sink (template_print);
73b847
   data->enroll_progress_cb = progress_cb;
73b847
   data->enroll_progress_data = progress_data;
73b847
+  data->enroll_progress_destroy = progress_destroy;
73b847
 
73b847
   // Attach the progress data as task data so that it is destroyed
73b847
   g_task_set_task_data (priv->current_task, data, (GDestroyNotify) enroll_data_free);
73b847
-- 
73b847
2.24.1
73b847