[at-spi2-atk] Fix double-free introduced in last commit



commit 9cfd3ba585788c740f79237f770f26ddc115e7dd
Author: Mike Gorse <mgorse alum wpi edu>
Date:   Mon Sep 2 15:05:15 2019 -0500

    Fix double-free introduced in last commit

 atk-adaptor/bridge.c  | 3 ---
 tests/atk_test_util.c | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 8ce338c..5b43eda 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -413,9 +413,6 @@ _atk_bridge_register_application (gpointer data)
 
   spi_global_app_data->registration_pending = 0;
 
-  g_free (app->desktop_name);
-  g_free (app->desktop_path);
-
   message = dbus_message_new_method_call (SPI_DBUS_NAME_REGISTRY,
                                           ATSPI_DBUS_PATH_ROOT,
                                           ATSPI_DBUS_INTERFACE_SOCKET,
diff --git a/tests/atk_test_util.c b/tests/atk_test_util.c
index 8e88877..3e3c08a 100644
--- a/tests/atk_test_util.c
+++ b/tests/atk_test_util.c
@@ -47,6 +47,7 @@ run_app (const char *file_name)
             NULL);
     _exit (EXIT_SUCCESS);
   }
+  if (child_pid) fprintf(stderr, "child_pid %d\n", child_pid);
 }
 
 static AtspiAccessible *try_get_root_obj (AtspiAccessible *obj)
@@ -74,6 +75,7 @@ AtspiAccessible * get_root_obj (const char *file_name)
   struct timespec timeout = { .tv_sec = 0, .tv_nsec = 10 * 1000000 };
   AtspiAccessible *obj = NULL;
 
+  fprintf(stderr, "run_app: %s\n", file_name);
   run_app (file_name);
 
   obj = atspi_get_desktop (0);


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