]> source.dussan.org Git - tigervnc.git/commitdiff
Remove debugging strdup()
authorPierre Ossman <ossman@cendio.se>
Mon, 2 Jan 2023 11:55:17 +0000 (12:55 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 2 Jan 2023 11:55:17 +0000 (12:55 +0100)
This was not meant to be included in the previous commit. The static
storage for the font string is more than enough.

vncviewer/fltk/theme.cxx

index d67480917cf08822bbf69fbaa3f3957785fc8f87..a5c0764ef7b57f41db03ad097f7873a59e95010f 100644 (file)
@@ -81,7 +81,7 @@ void init_theme()
       CFStringGetCString(name, font_name, sizeof(font_name),
                          kCFStringEncodingUTF8);
 
-      Fl::set_font(FL_HELVETICA, strdup(font_name));
+      Fl::set_font(FL_HELVETICA, font_name);
 
       CFRelease(name);
     }