summaryrefslogtreecommitdiffstats
path: root/input/ipc-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/ipc-win.c')
-rw-r--r--input/ipc-win.c4
1 files changed, 2 insertions, 2 deletions
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);
}