From 6551d3af6f51b2a3d93b7db00d3f370e7e7633d3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 06 Nov 2017 17:06:36 -0500 Subject: mq_profiles_new(): Free configs after creation --- (limited to 'src/config') 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); } -- cgit v0.9.1