aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-10-03 23:31:29 +0200
committerMihai Moldovan <ionic@ionic.de>2019-10-10 11:35:23 +0200
commit8482abd31304b4555cabf135c3a41a961cba7845 (patch)
tree79894088a4d2dc882a1224ee8ab1237e03f6e8b8
parent994305ff43e7165d0aca8510263a969ac2fb1327 (diff)
downloadnx-libs-8482abd31304b4555cabf135c3a41a961cba7845.tar.gz
nx-libs-8482abd31304b4555cabf135c3a41a961cba7845.tar.bz2
nx-libs-8482abd31304b4555cabf135c3a41a961cba7845.zip
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 643e13bf3de6704f634d60342b738e0002f057b9). Fixes a small memleak that turned up after switching to fullscreen once.
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index c8449675a..ae64c0a18 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -420,8 +420,6 @@ Window nxagentCreateIconWindow(void)
{
XSetWindowAttributes attributes;
unsigned long valuemask;
- char* window_name;
- XTextProperty windowName;
XSizeHints* sizeHints;
XWMHints* wmHints;
Window w;
@@ -460,9 +458,6 @@ Window nxagentCreateIconWindow(void)
* Set hints to the window manager for the icon window.
*/
- window_name = nxagentWindowName;
- XStringListToTextProperty(&window_name, 1, &windowName);
-
if ((sizeHints = XAllocSizeHints()))
{
sizeHints->flags = PMinSize | PMaxSize;
@@ -487,6 +482,8 @@ Window nxagentCreateIconWindow(void)
}
}
+ char *window_name = nxagentWindowName;
+
Xutf8SetWMProperties(nxagentDisplay, w,
window_name, window_name,
NULL , 0 , sizeHints, wmHints, NULL);