From 9489370eb9e6dafb39fe4169d2d1042e518e5061 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 17 Apr 2013 00:07:53 +0300 Subject: [PATCH] * mu: mu-config: fix small leak --- mu/mu-config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mu/mu-config.c b/mu/mu-config.c index e6ac942c..29de498d 100644 --- a/mu/mu-config.c +++ b/mu/mu-config.c @@ -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);