Re: [fprint] Memory management Libfprint

2021-04-22 Thread Benjamin Berg
Hi, On Wed, 2021-04-21 at 22:17 +, Carlos Garcia wrote: > When g_cancellable_cancel is invoked, it needs to be invoked with > g_idle_add. I forgot to reply to this. It is legal to use g_cancellable_cancel from different thread. Benjamin > The g_main_loop_run is running on another thread. >

Re: [fprint] Memory management Libfprint

2021-04-22 Thread Benjamin Berg
On Thu, 2021-04-22 at 11:38 +0200, Benjamin Berg wrote: > I'll submit a fix later, but just keeping the FpContext around (or > unref'ing it only after the "device-removed" signal has happened) > should work around the problem. Or just doing while (g_main_context_iteration (NULL, FALSE)) {}; befo

Re: [fprint] Memory management Libfprint

2021-04-22 Thread Benjamin Berg
Hi, please make sure to press the "Reply to all" button (or just reply to the list only). On Wed, 2021-04-21 at 22:17 +, Carlos Garcia wrote: > Thanks Benjamin. The problem was solved. About the other problem:  No problem! > Another problem detected is when unplug device, next call capture