Reverted Value interface since the new union was more complicated than necessary.
[platform/upstream/at-spi2-core.git] / test / simple-at.c
index a27f4bb..54ca155 100644 (file)
@@ -140,7 +140,7 @@ main (int argc, char **argv)
 
   SPI_event_main ();
 
-  setenv ("AT_BRIDGE_SHUTDOWN", "1", TRUE);
+  putenv ("AT_BRIDGE_SHUTDOWN=1");
 
   return SPI_exit ();
 }
@@ -183,7 +183,9 @@ report_focussed_accessible (Accessible *obj, SPIBoolean shutup_previous_speech)
     {
       if (festival_chatty)         
         {
-          _festival_say (Accessible_getRole (obj), "voice_don_diphone", shutup_previous_speech);
+         s = Accessible_getRoleName (obj);     
+          _festival_say (s, "voice_don_diphone", shutup_previous_speech);
+         SPI_freeString (s);
         }
       fprintf (stderr, "getting Name\n");
       s = Accessible_getName (obj);