Don't call quit if the loop is NULL
As it will be, in the async case.
This commit is contained in:
@@ -433,7 +433,8 @@ prepare_print_called (GObject *source,
|
||||
{
|
||||
g_warning ("Error: %s", error->message);
|
||||
g_error_free (error);
|
||||
g_main_loop_quit (portal->loop);
|
||||
if (portal->loop)
|
||||
g_main_loop_quit (portal->loop);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user