diff --git a/host/gop.c b/host/gop.c index 1322e92..05d8d95 100644 --- a/host/gop.c +++ b/host/gop.c @@ -252,6 +252,7 @@ static void *draw(void *arg) XDestroyImage(gop->img); gop->img = NULL; } + XFreeGC(gop->display, gop->gc); XUnmapWindow(gop->display, gop->win); XDestroyWindow(gop->display, gop->win); XFree(vi);