svkbd

simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log | Files | Refs | README | LICENSE

commit 2fa04e74fe304db479e3fb4c984c0868c725ab3c
parent 5fd07406aeef557ee500af776c25e88278135a0f
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Mon, 15 Mar 2021 23:30:15 +0100

fixed double free error

Diffstat:
MMakefile | 4++--
Msvkbd.c | 1-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -27,12 +27,12 @@ config.h: svkbd.o: config.h layout.${LAYOUT}.h .c.o: - ${CC} ${SVKBD_CFLAGS} ${SVKBD_CPPFLAGS} -c $< + ${CC} -g ${SVKBD_CFLAGS} ${SVKBD_CPPFLAGS} -c $< ${OBJ}: config.h config.mk ${BIN}: ${OBJ} - ${CC} -o ${BIN} ${OBJ} ${SVKBD_LDFLAGS} + ${CC} -g -o ${BIN} ${OBJ} ${SVKBD_LDFLAGS} clean: rm -f ${NAME}-?? ${NAME}-??.o ${OBJ} ${BIN} diff --git a/svkbd.c b/svkbd.c @@ -245,7 +245,6 @@ cleanup(void) drw_sync(drw); drw_free(drw); XSync(dpy, False); - drw_free(drw); XDestroyWindow(dpy, win); XSync(dpy, False); XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);