diff options
author | Peter Shkenev <petershh@disroot.org> | 2024-08-10 14:06:51 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2024-08-10 14:06:51 +0100 |
commit | 2443ff581ccd08b2fb36e1539a6b67da671ec430 (patch) | |
tree | 885c399ac4bed5f2fb2bbe5206270e8ee659ac41 | |
parent | d5b4c96268df11437957c288f95490f011db9335 (diff) | |
download | libnsfb-2443ff581ccd08b2fb36e1539a6b67da671ec430.tar.gz libnsfb-2443ff581ccd08b2fb36e1539a6b67da671ec430.tar.bz2 |
This fixes compilation with gcc 14.
-rw-r--r-- | src/surface/x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/surface/x.c b/src/surface/x.c index c011b38..dfbae56 100644 --- a/src/surface/x.c +++ b/src/surface/x.c @@ -808,8 +808,8 @@ static int x_initialise(nsfb_t *nsfb) if (xstate->image == NULL) { fprintf(stderr, "Unable to create image\n"); - free(xstate); xcb_disconnect(xstate->connection); + free(xstate); return -1; } |