fixed double free error

This commit is contained in:
Maarten van Gompel 2021-03-15 23:30:15 +01:00 committed by Hiltjo Posthuma
parent 5fd07406ae
commit 2fa04e74fe
2 changed files with 2 additions and 3 deletions

View File

@ -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}

View File

@ -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);