summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-12-15 18:45:04 -0500
committerFurkan Sahin <furkan-dev@proton.me>2016-12-15 18:45:04 -0500
commita1786172a0d2964673c1dc7dbf4ffcd4dbf62182 (patch)
treefa4dc296a5f1377867752d320ceef4e4b0178bbf
parent93dcf1e0e871adc78db4d243801220411e7a7a36 (diff)
Fix build error
-rw-r--r--sway/ipc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index f5be9e37..be6e411a 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -298,7 +298,7 @@ void ipc_get_pixels(wlc_handle output) {
char *data = malloc(sizeof(response_header) + size->w * size->h * 4);
if (!data) {
sway_log(L_ERROR, "Unable to allocate pixels for get_pixels");
- ipc_client_disconnect(client);
+ ipc_client_disconnect(req->client);
free(req);
continue;
}