device: Fix potential memory leak of progress_cb user data
The progress report user data free func was not assigned and therefore never called. Add the missing assign, potentially fixing memory leaks (mostly relevant for bindings).
This commit is contained in:
parent
ba07c74006
commit
fcdf1a1ff1
1 changed files with 1 additions and 0 deletions
|
@ -775,6 +775,7 @@ fp_device_enroll (FpDevice *device,
|
|||
data->print = g_object_ref_sink (template_print);
|
||||
data->enroll_progress_cb = progress_cb;
|
||||
data->enroll_progress_data = progress_data;
|
||||
data->enroll_progress_destroy = progress_destroy;
|
||||
|
||||
// Attach the progress data as task data so that it is destroyed
|
||||
g_task_set_task_data (priv->current_task, data, (GDestroyNotify) enroll_data_free);
|
||||
|
|
Loading…
Reference in a new issue