]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[two-step] Clean up animation when stopping
authorRay Strode <rstrode@redhat.com>
Mon, 4 May 2009 04:09:34 +0000 (00:09 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 20 May 2009 21:27:54 +0000 (17:27 -0400)
src/plugins/splash/two-step/plugin.c

index e66db764c4eead55322b84a0dbc11dfc785de272..f0fd0a87cadf3cabde68c8acd92a068f46d8c14a 100644 (file)
@@ -110,6 +110,7 @@ struct _ply_boot_splash_plugin
 
 static void add_handlers (ply_boot_splash_plugin_t *plugin);
 static void remove_handlers (ply_boot_splash_plugin_t *plugin);
+static void stop_animation (ply_boot_splash_plugin_t *plugin);
 
 static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin);
 ply_boot_splash_plugin_t *
@@ -209,6 +210,8 @@ destroy_plugin (ply_boot_splash_plugin_t *plugin)
 
   if (plugin->loop != NULL)
     {
+      stop_animation (plugin);
+
       ply_event_loop_stop_watching_for_exit (plugin->loop, (ply_event_loop_exit_handler_t)
                                              detach_from_event_loop,
                                              plugin);