From: Ray Strode Date: Tue, 20 May 2008 14:54:22 +0000 (-0400) Subject: detach text plugin from event loop when hiding it X-Git-Tag: 0.1.0~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4efa1c5d95ed99c62773dadcf9847fad5468d55;p=thirdparty%2Fplymouth.git detach text plugin from event loop when hiding it --- diff --git a/src/splash-plugins/text/text.c b/src/splash-plugins/text/text.c index 078f755b..6ae750aa 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