[util] Plug leak

pull/8/head
Behdad Esfahbod 11 years ago
parent ca8d96c8ba
commit 260a3198f4
  1. 5
      util/options.cc

@ -369,11 +369,12 @@ void
output_options_t::add_options (option_parser_t *parser)
{
const char *text;
char *text_free = NULL;
if (NULL == supported_formats)
text = "Set output format";
else
text = g_strdup_printf ("Set output format\n\n Supported formats are: %s", supported_formats);
text = text_free = g_strdup_printf ("Set output format\n\n Supported formats are: %s", supported_formats);
GOptionEntry entries[] =
{
@ -386,6 +387,8 @@ output_options_t::add_options (option_parser_t *parser)
"Output options:",
"Options controlling the output",
this);
g_free (text_free);
}

Loading…
Cancel
Save