Fix for BGO#657585: The bus launcher should not flush a NULL display
authorMike Gorse <mgorse@novell.com>
Mon, 29 Aug 2011 12:48:53 +0000 (07:48 -0500)
committerMike Gorse <mgorse@novell.com>
Mon, 29 Aug 2011 12:48:53 +0000 (07:48 -0500)
bus/at-spi-bus-launcher.c

index dff7ede..76b7060 100644 (file)
@@ -192,9 +192,9 @@ ensure_a11y_bus (A11yBusLauncher *app)
                          bus_address_atom,
                          XA_STRING, 8, PropModeReplace,
                          (guchar *) app->a11y_bus_address, strlen (app->a11y_bus_address));
+        XFlush (display);
+        XCloseDisplay (display);
       }
-    XFlush (display);
-    XCloseDisplay (display);
   }
 
   return;