Skip to content

Commit 8a1d2b7

Browse files
committed
Clean up colormap
1 parent 7be914c commit 8a1d2b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: x11.c

+4
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ void x11_cleanup(XRESOURCES* res){
152152
XDestroyWindow(res->display, res->main);
153153
}
154154

155+
if(res->colormap){
156+
XFreeColormap(res->display, res->colormap);
157+
}
158+
155159
XCloseDisplay(res->display);
156160
xfd_free(&(res->xfds));
157161
}

0 commit comments

Comments
 (0)