aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/fltk
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-01-02 12:55:17 +0100
committerPierre Ossman <ossman@cendio.se>2023-01-02 12:55:17 +0100
commite0d2843c60246c73be727b3ed7ab89ea10beb0a3 (patch)
tree59f7a17a988da011732dad4d8d832dec144fecd8 /vncviewer/fltk
parent8793424b343155269011c05cba37b8a094edc120 (diff)
downloadtigervnc-e0d2843c60246c73be727b3ed7ab89ea10beb0a3.tar.gz
tigervnc-e0d2843c60246c73be727b3ed7ab89ea10beb0a3.zip
Remove debugging strdup()
This was not meant to be included in the previous commit. The static storage for the font string is more than enough.
Diffstat (limited to 'vncviewer/fltk')
-rw-r--r--vncviewer/fltk/theme.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/fltk/theme.cxx b/vncviewer/fltk/theme.cxx
index d6748091..a5c0764e 100644
--- a/vncviewer/fltk/theme.cxx
+++ b/vncviewer/fltk/theme.cxx
@@ -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);
}