From 8482abd31304b4555cabf135c3a41a961cba7845 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 3 Oct 2019 23:31:29 +0200 Subject: 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. --- nx-X11/programs/Xserver/hw/nxagent/Screen.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'nx-X11') 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); -- cgit v1.2.3