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 /vncviewer/DesktopWindow.cxx | |
parent | 46f718f6472f87fa26633346a4b343a51b0c7f7a (diff) | |
download | tigervnc-a5720e571939ff452967cf9cdb1b7d8665708739.tar.gz tigervnc-a5720e571939ff452967cf9cdb1b7d8665708739.zip |
Fix memory leaks
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index d070b648..1843485a 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -103,12 +103,12 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name, int geom_x = 0, geom_y = 0; if (strcmp(geometry, "") != 0) { int matched; - matched = sscanf(geometry.getValueStr(), "+%d+%d", &geom_x, &geom_y); + matched = sscanf((const char*)geometry, "+%d+%d", &geom_x, &geom_y); if (matched == 2) { force_position(1); } else { int geom_w, geom_h; - matched = sscanf(geometry.getValueStr(), "%dx%d+%d+%d", &geom_w, &geom_h, &geom_x, &geom_y); + matched = sscanf((const char*)geometry, "%dx%d+%d+%d", &geom_w, &geom_h, &geom_x, &geom_y); switch (matched) { case 4: force_position(1); |