diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-05-20 10:54:22 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-05-20 10:54:22 -0400 |
| commit | b4efa1c5d95ed99c62773dadcf9847fad5468d55 (patch) | |
| tree | b8c8cb0c6dff4a2d6b52b39fa0f1eeb359a2ea5b /src/splash-plugins/text | |
| parent | 9ed10c8ed910b9704d5ae434249578c8bf711702 (diff) | |
| download | plymouth-b4efa1c5d95ed99c62773dadcf9847fad5468d55.tar.gz plymouth-b4efa1c5d95ed99c62773dadcf9847fad5468d55.tar.xz plymouth-b4efa1c5d95ed99c62773dadcf9847fad5468d55.zip | |
detach text plugin from event loop when hiding it
Diffstat (limited to 'src/splash-plugins/text')
| -rw-r--r-- | src/splash-plugins/text/text.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/splash-plugins/text/text.c b/src/splash-plugins/text/text.c index 078f755..6ae750a 100644 --- a/src/splash-plugins/text/text.c +++ b/src/splash-plugins/text/text.c @@ -134,11 +134,14 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin, ply_trace ("hiding splash screen"); - ply_event_loop_stop_watching_for_exit (plugin->loop, - (ply_event_loop_exit_handler_t) - detach_from_event_loop, - plugin); - detach_from_event_loop (plugin); + if (plugin->loop != NULL) + { + ply_event_loop_stop_watching_for_exit (plugin->loop, + (ply_event_loop_exit_handler_t) + detach_from_event_loop, + plugin); + detach_from_event_loop (plugin); + } } void |
