瀏覽代碼

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.
pull/1592/head
Pierre Ossman 1 年之前
父節點
當前提交
e0d2843c60
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      vncviewer/fltk/theme.cxx

+ 1
- 1
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);
}

Loading…
取消
儲存