[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:
Ray Strode 2009-11-17 19:06:09 -05:00
parent 5a306e0b13
commit a93b6525b3

View file

@ -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);