]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[two-step] Don't crash if throbber is unavailable
authorRay Strode <rstrode@redhat.com>
Sat, 21 Aug 2010 21:01:30 +0000 (17:01 -0400)
committerRay Strode <rstrode@redhat.com>
Sat, 21 Aug 2010 21:01:30 +0000 (17:01 -0400)
While the code took some steps to make the throbber optional,
it missed conditionalizing usage of the throbber in the
exit path.

src/plugins/splash/two-step/plugin.c

index 0945af62fb1813fe7f09ee65888f30a7b6393cc0..30b0d9e10aeecf53b3cc663e89a4ba1fe79448c9 100644 (file)
@@ -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;