diff options
-rw-r--r-- | src/config/profiles.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config/profiles.c b/src/config/profiles.c index f4b8797..8ee8acb 100644 --- a/src/config/profiles.c +++ b/src/config/profiles.c @@ -57,13 +57,15 @@ create(MqProfiles *profiles) private_profile = mq_profiles_insert(profiles, "Private", "#6060a0"); if (default_profile) { - mq_config_new(default_profile, MQ_CONFIG_PROFILE_DEFAULT); + mq_config_deref(mq_config_new(default_profile, + MQ_CONFIG_PROFILE_DEFAULT)); mq_profiles_set_default(profiles, default_profile); g_free(default_profile); } if (private_profile) { - mq_config_new(private_profile, MQ_CONFIG_PROFILE_PRIVATE); + mq_config_deref(mq_config_new(private_profile, + MQ_CONFIG_PROFILE_PRIVATE)); g_free(private_profile); } |