From e0d2843c60246c73be727b3ed7ab89ea10beb0a3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 2 Jan 2023 12:55:17 +0100 Subject: [PATCH] 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. --- vncviewer/fltk/theme.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5