atk-adaptor: don't emit a critical in case the bridge was not initialized
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 18 Sep 2012 23:10:28 +0000 (01:10 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 29 Oct 2012 21:56:14 +0000 (22:56 +0100)
Fixes running with NO_AT_BRIDGE=1

https://bugzilla.gnome.org/show_bug.cgi?id=684334

atk-adaptor/bridge.c

index 2df9889..9fd180e 100644 (file)
@@ -938,7 +938,8 @@ atk_bridge_adaptor_cleanup (void)
   GList *l;
   GSList *ls;
 
-  g_return_if_fail (inited);
+  if (!inited)
+    return;
 
   if (!spi_global_app_data)
       return;