From: Ray Strode Date: Mon, 4 May 2009 04:09:34 +0000 (-0400) Subject: [two-step] Clean up animation when stopping X-Git-Tag: 0.7.0~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc3dda9c5c6b2d8325aa9a22bfcea3d29580bcb;p=thirdparty%2Fplymouth.git [two-step] Clean up animation when stopping --- diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index e66db764..f0fd0a87 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -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);