]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[script] free views before nullifying event loop
authorRay Strode <rstrode@redhat.com>
Wed, 18 Nov 2009 00:06:09 +0000 (19:06 -0500)
committerRay Strode <rstrode@redhat.com>
Wed, 18 Nov 2009 00:06:09 +0000 (19:06 -0500)
If we don't do this then a timeout will get scheduled
by view_stop_animation.

src/plugins/splash/script/plugin.c

index 3582b84c47e4895f58d9a89883d7255545803601..f5732102f9177cb030d332df0255d3e0df4acdad 100644 (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);