git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@393 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-17 03:47:54 +00:00
parent ec86f5297e
commit 5862e59b63
5 changed files with 29 additions and 15 deletions

View File

@@ -132,14 +132,15 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
void MwLLDestroy(MwLL handle) {
MwLLDestroyCommon(handle);
XDestroyIC(handle->xic);
XCloseIM(handle->xim);
if(handle->xic) XDestroyIC(handle->xic);
if(handle->xim) XCloseIM(handle->xim);
destroy_pixmap(handle);
XFree(handle->visual);
XFreeGC(handle->display, handle->gc);
XUnmapWindow(handle->display, handle->window);
XDestroyWindow(handle->display, handle->window);
XFlush(handle->display);
free(handle);
}