* mu: mu-config: fix small leak

This commit is contained in:
djcb 2013-04-17 00:07:53 +03:00
parent 8c0b7eb92a
commit 9489370eb9
1 changed files with 3 additions and 3 deletions

View File

@ -376,6 +376,9 @@ config_options_group_view (void)
static void
set_group_extract_defaults (void)
{
if (!MU_CONFIG.targetdir)
MU_CONFIG.targetdir = g_strdup (".");
expand_dir (MU_CONFIG.targetdir);
}
@ -402,9 +405,6 @@ config_options_group_extract (void)
"try to 'play' (open) the extracted parts", NULL},
{NULL, 0, 0, 0, NULL, NULL, NULL}
};
MU_CONFIG.targetdir = g_strdup("."); /* default is the current dir */
og = g_option_group_new("extract",
"Options for the 'extract' command",
"", NULL, NULL);