summaryrefslogtreecommitdiffstats
path: root/src/splash-plugins/text
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-20 10:54:22 -0400
committerRay Strode <rstrode@redhat.com>2008-05-20 10:54:22 -0400
commitb4efa1c5d95ed99c62773dadcf9847fad5468d55 (patch)
treeb8c8cb0c6dff4a2d6b52b39fa0f1eeb359a2ea5b /src/splash-plugins/text
parent9ed10c8ed910b9704d5ae434249578c8bf711702 (diff)
downloadplymouth-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.c13
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