Re: [Spice-devel] [PATCH phodav 05/13] spice: clear loop pointer on unref

2019-05-23 Thread Marc-André Lureau
On Thu, May 23, 2019 at 10:37 AM Jakub Janků wrote: > > The pointer to loop must be set to NULL on unref. > > Quit signal handler can be called at any time, > using g_main_loop_quit() on a freed loop could lead to segfault. I am not sure if this is enough to solve the race you describe (handler

[Spice-devel] [PATCH phodav 05/13] spice: clear loop pointer on unref

2019-05-23 Thread Jakub Janků
The pointer to loop must be set to NULL on unref. Quit signal handler can be called at any time, using g_main_loop_quit() on a freed loop could lead to segfault. Signed-off-by: Jakub Janků --- spice/spice-webdavd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git