mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 16:10:52 +00:00
[_checkWindowManager] better clean up of memory.
[_setupRootWindow] and [titlewindow::] free the value of the XTextProperty. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17237 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90a1384249
commit
28bab0e371
1 changed files with 14 additions and 0 deletions
|
@ -481,6 +481,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
XFree(d);
|
||||
wmflags |= XGWM_WINDOWMAKER;
|
||||
}
|
||||
XFree(win);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -508,6 +509,11 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
generic.wintypes.win_type_atom =
|
||||
XInternAtom(dpy, "_WIN_LAYER", False);
|
||||
}
|
||||
if (win1)
|
||||
{
|
||||
XFree(win1);
|
||||
}
|
||||
XFree(win);
|
||||
}
|
||||
|
||||
/* Now check for NET (EWMH) compliant window manager */
|
||||
|
@ -553,6 +559,11 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
generic.wintypes.win_topmenu_atom =
|
||||
XInternAtom(dpy, "_KDE_NET_WM_WINDOW_TYPE_TOPMENU", False);
|
||||
}
|
||||
if (win1)
|
||||
{
|
||||
XFree(win1);
|
||||
}
|
||||
XFree(win);
|
||||
}
|
||||
|
||||
NSDebugLLog(@"WM",
|
||||
|
@ -796,6 +807,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
XStringListToTextProperty((char**)&classhint.res_name, 1, &windowName);
|
||||
XSetWMName(dpy, ROOT, &windowName);
|
||||
XSetWMIconName(dpy, ROOT, &windowName);
|
||||
XFree(windowName.value);
|
||||
|
||||
/*
|
||||
* Record the information used to start this app.
|
||||
|
@ -819,6 +831,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
// Store the host name of the machine we a running on
|
||||
XStringListToTextProperty((char**)&host_name, 1, &windowName);
|
||||
XSetWMClientMachine(dpy, ROOT, &windowName);
|
||||
XFree(windowName.value);
|
||||
|
||||
if ((generic.wm & XGWM_WINDOWMAKER) != 0)
|
||||
{
|
||||
|
@ -1297,6 +1310,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
XStringListToTextProperty((char**)&title, 1, &windowName);
|
||||
XSetWMName(dpy, window->ident, &windowName);
|
||||
XSetWMIconName(dpy, window->ident, &windowName);
|
||||
XFree(windowName.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue