summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-06 17:06:36 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-06 17:06:36 (EST)
commit6551d3af6f51b2a3d93b7db00d3f370e7e7633d3 (patch)
tree446c017367bc28c5ae38e5613378308e2b63d60a /src/config
parent40431b0ea9700b913c03a3f3e8d86b76d7a7c2bb (diff)
downloadmarquee-6551d3af6f51b2a3d93b7db00d3f370e7e7633d3.zip
marquee-6551d3af6f51b2a3d93b7db00d3f370e7e7633d3.tar.gz
marquee-6551d3af6f51b2a3d93b7db00d3f370e7e7633d3.tar.bz2
mq_profiles_new(): Free configs after creation
Diffstat (limited to 'src/config')
-rw-r--r--src/config/profiles.c6
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);
}