- FontSpec fontspec;
- dlg_fontsel_get(ctrl, dlg, &fontspec);
- conf_set_fontspec(conf, key, &fontspec);
- /* If FontSpecs ever become dynamic, free this one. */
+ FontSpec *fontspec = dlg_fontsel_get(ctrl, dlg);
+ conf_set_fontspec(conf, key, fontspec);
+ fontspec_free(fontspec);