mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 10:08:06 +02:00
[script] free views before nullifying event loop
If we don't do this then a timeout will get scheduled by view_stop_animation.
This commit is contained in:
parent
5a306e0b13
commit
a93b6525b3
1 changed files with 2 additions and 1 deletions
|
|
@ -202,6 +202,8 @@ destroy_plugin (ply_boot_splash_plugin_t *plugin)
|
|||
if (plugin == NULL)
|
||||
return;
|
||||
|
||||
free_views (plugin);
|
||||
|
||||
if (plugin->loop != NULL)
|
||||
{
|
||||
stop_animation (plugin);
|
||||
|
|
@ -212,7 +214,6 @@ destroy_plugin (ply_boot_splash_plugin_t *plugin)
|
|||
detach_from_event_loop (plugin);
|
||||
}
|
||||
|
||||
free_views (plugin);
|
||||
free (plugin->script_filename);
|
||||
free (plugin->image_dir);
|
||||
free (plugin);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue