Add NULL check to fix crash when receiving a dbus reply after cleanup
authorMike Gorse <mgorse@suse.com>
Wed, 10 Apr 2013 17:40:47 +0000 (12:40 -0500)
committerMike Gorse <mgorse@suse.com>
Wed, 10 Apr 2013 17:40:47 +0000 (12:40 -0500)
atk-adaptor/bridge.c

index 9683e18..b016da6 100644 (file)
@@ -88,6 +88,9 @@ tally_event_reply ()
 {
   static int replies_received = 0;
 
+  if (!spi_global_app_data)
+    return;
+
   replies_received++;
   if (replies_received == 3)
   {