From: Ray Strode Date: Sat, 21 Aug 2010 21:01:30 +0000 (-0400) Subject: [two-step] Don't crash if throbber is unavailable X-Git-Tag: 0.8.4~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37c82e306cd0ff0d8cf9bc0280c2e6ff512f3f33;p=thirdparty%2Fplymouth.git [two-step] Don't crash if throbber is unavailable While the code took some steps to make the throbber optional, it missed conditionalizing usage of the throbber in the exit path. --- diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index 0945af62..30b0d9e1 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -731,7 +731,8 @@ stop_animation (ply_boot_splash_plugin_t *plugin, ply_progress_animation_hide (view->progress_animation); if (trigger != NULL) ply_trigger_ignore_next_pull (trigger); - ply_throbber_stop (view->throbber, trigger); + if (view->throbber != NULL) + ply_throbber_stop (view->throbber, trigger); ply_animation_stop (view->end_animation); node = next_node;