]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
detach text plugin from event loop when hiding it
authorRay Strode <rstrode@redhat.com>
Tue, 20 May 2008 14:54:22 +0000 (10:54 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 20 May 2008 14:54:22 +0000 (10:54 -0400)
src/splash-plugins/text/text.c

index 078f755bd3bfb546551f9c26073fe8d92eaa5541..6ae750aa5dd208dc18584d1669adc25befff1f0c 100644 (file)
@@ -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