mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-20 16:14:07 +00:00
safety
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@393 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user