[at-spi2-atk] atk-adaptor: don't emit a critical in case the bridge was not initialized



commit 576a27a3fabbd3a8c1421d4322cafd47f02c1ada
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Wed Sep 19 01:10:28 2012 +0200

    atk-adaptor: don't emit a critical in case the bridge was not initialized
    
    Fixes running with NO_AT_BRIDGE=1
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684334

 atk-adaptor/bridge.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 2df9889..9fd180e 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]