Commit 8482abd3 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mihai Moldovan

Screen.c: fix a memleak

Remove some code that is no longer needed because the code requiring it has been removed some time ago (commit 643e13bf). Fixes a small memleak that turned up after switching to fullscreen once.
parent 994305ff
...@@ -420,8 +420,6 @@ Window nxagentCreateIconWindow(void) ...@@ -420,8 +420,6 @@ Window nxagentCreateIconWindow(void)
{ {
XSetWindowAttributes attributes; XSetWindowAttributes attributes;
unsigned long valuemask; unsigned long valuemask;
char* window_name;
XTextProperty windowName;
XSizeHints* sizeHints; XSizeHints* sizeHints;
XWMHints* wmHints; XWMHints* wmHints;
Window w; Window w;
...@@ -460,9 +458,6 @@ Window nxagentCreateIconWindow(void) ...@@ -460,9 +458,6 @@ Window nxagentCreateIconWindow(void)
* Set hints to the window manager for the icon window. * Set hints to the window manager for the icon window.
*/ */
window_name = nxagentWindowName;
XStringListToTextProperty(&window_name, 1, &windowName);
if ((sizeHints = XAllocSizeHints())) if ((sizeHints = XAllocSizeHints()))
{ {
sizeHints->flags = PMinSize | PMaxSize; sizeHints->flags = PMinSize | PMaxSize;
...@@ -487,6 +482,8 @@ Window nxagentCreateIconWindow(void) ...@@ -487,6 +482,8 @@ Window nxagentCreateIconWindow(void)
} }
} }
char *window_name = nxagentWindowName;
Xutf8SetWMProperties(nxagentDisplay, w, Xutf8SetWMProperties(nxagentDisplay, w,
window_name, window_name, window_name, window_name,
NULL , 0 , sizeHints, wmHints, NULL); NULL , 0 , sizeHints, wmHints, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment