diff options
author | Jan Grulich <jgrulich@redhat.com> | 2018-11-20 10:44:39 +0100 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2018-11-20 10:45:20 +0100 |
commit | a5720e571939ff452967cf9cdb1b7d8665708739 (patch) | |
tree | e61595aea20bf880ac0b52911a2813e110028968 /unix/xserver | |
parent | 46f718f6472f87fa26633346a4b343a51b0c7f7a (diff) | |
download | tigervnc-a5720e571939ff452967cf9cdb1b7d8665708739.tar.gz tigervnc-a5720e571939ff452967cf9cdb1b7d8665708739.zip |
Fix memory leaks
Diffstat (limited to 'unix/xserver')
-rw-r--r-- | unix/xserver/hw/vnc/vncExtInit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc index d6f6b742..7ca71d94 100644 --- a/unix/xserver/hw/vnc/vncExtInit.cc +++ b/unix/xserver/hw/vnc/vncExtInit.cc @@ -184,7 +184,7 @@ void vncExtensionInit(void) listeners.push_back(new network::TcpListener(vncInetdSock)); vlog.info("inetd wait"); } - } else if (rfbunixpath.getValueStr()[0] != '\0') { + } else if (((const char*)rfbunixpath)[0] != '\0') { char path[PATH_MAX]; int mode = (int)rfbunixmode; @@ -192,7 +192,7 @@ void vncExtensionInit(void) strncpy(path, rfbunixpath, sizeof(path)); else snprintf(path, sizeof(path), "%s.%d", - rfbunixpath.getValueStr(), scr); + (const char*)rfbunixpath, scr); path[sizeof(path)-1] = '\0'; listeners.push_back(new network::UnixListener(path, mode)); |