From 03791fae163591951b2b8208fe6b0b6c95d8ae77 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Mar 2018 11:27:46 +0100 Subject: all: replace mpv_detach_destroy() with mpv_destroy() --- input/ipc-unix.c | 4 ++-- input/ipc-win.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'input') diff --git a/input/ipc-unix.c b/input/ipc-unix.c index 3b01d477f1..778f2f1e46 100644 --- a/input/ipc-unix.c +++ b/input/ipc-unix.c @@ -209,7 +209,7 @@ done: talloc_free(client_msg.start); if (arg->close_client_fd) close(arg->client_fd); - mpv_detach_destroy(arg->client); + mpv_destroy(arg->client); talloc_free(arg); return NULL; } @@ -230,7 +230,7 @@ static void ipc_start_client(struct mp_ipc_ctx *ctx, struct client_arg *client) err: if (client->client) - mpv_detach_destroy(client->client); + mpv_destroy(client->client); if (client->close_client_fd) close(client->client_fd); diff --git a/input/ipc-win.c b/input/ipc-win.c index 6908683d8d..3cbdad3749 100644 --- a/input/ipc-win.c +++ b/input/ipc-win.c @@ -304,7 +304,7 @@ done: CloseHandle(arg->write_ol.hEvent); CloseHandle(arg->client_h); - mpv_detach_destroy(arg->client); + mpv_destroy(arg->client); talloc_free(arg); return NULL; } @@ -316,7 +316,7 @@ static void ipc_start_client(struct mp_ipc_ctx *ctx, struct client_arg *client) pthread_t client_thr; if (pthread_create(&client_thr, NULL, client_thread, client)) { - mpv_detach_destroy(client->client); + mpv_destroy(client->client); CloseHandle(client->client_h); talloc_free(client); } -- cgit v1.2.3