[at-spi2-atk] Fix small memory leak introduced in the last commit



commit 1e43763d4eadd68b8afb8f849693187df2593879
Author: Mike Gorse <mgorse alum wpi edu>
Date:   Mon Sep 2 09:46:38 2019 -0500

    Fix small memory leak introduced in the last commit

 atk-adaptor/bridge.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 1a23478..8ce338c 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -416,11 +416,6 @@ _atk_bridge_register_application (gpointer data)
   g_free (app->desktop_name);
   g_free (app->desktop_path);
 
-  /* These will be overridden when we get a reply, but in practice these
-     defaults should always be correct */
-  app->desktop_name = g_strdup (ATSPI_DBUS_NAME_REGISTRY);
-  app->desktop_path = g_strdup (ATSPI_DBUS_PATH_ROOT);
-
   message = dbus_message_new_method_call (SPI_DBUS_NAME_REGISTRY,
                                           ATSPI_DBUS_PATH_ROOT,
                                           ATSPI_DBUS_INTERFACE_SOCKET,


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