summaryrefslogtreecommitdiffstats
path: root/serial/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial/proxy.c')
-rw-r--r--serial/proxy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/serial/proxy.c b/serial/proxy.c
index 7128bdbc..643e19aa 100644
--- a/serial/proxy.c
+++ b/serial/proxy.c
@@ -1002,9 +1002,11 @@ static void manager_path_unregister(void *data)
/* Remove proxy objects */
for (l = adapter->proxies; l; l = l->next) {
struct serial_proxy *prx = l->data;
+ char *path = g_strdup(prx->path);
- g_dbus_unregister_interface(adapter->conn, prx->path,
+ g_dbus_unregister_interface(adapter->conn, path,
SERIAL_PROXY_INTERFACE);
+ g_free(path);
}
if (adapter->conn)