Fixed various static leaks

This commit is contained in:
Jarcode
2018-10-21 10:28:06 -07:00
parent 9d1c3a177c
commit 2c99124556
4 changed files with 83 additions and 54 deletions

View File

@@ -267,7 +267,7 @@ static void apply_clickthrough(struct glxwin* w) {
}
}
static void* process_events(struct glxwin* w) {
static void process_events(struct glxwin* w) {
while (XPending(display) > 0) {
XEvent ev;
XNextEvent(display, &ev);
@@ -566,6 +566,7 @@ static void destroy(struct glxwin* w) {
glXMakeCurrent(display, None, NULL); /* release context */
glXDestroyContext(display, w->context);
XDestroyWindow(display, w->w);
free(w);
}
static void terminate(void) {