From 40431b0ea9700b913c03a3f3e8d86b76d7a7c2bb Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 06 Nov 2017 17:05:38 -0500 Subject: mq_config_deref(): New function --- (limited to 'src/config/config.c') diff --git a/src/config/config.c b/src/config/config.c index fbaf7d8..4db1134 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -198,6 +198,16 @@ mq_config_new(const gchar *profile, MqConfigProfile profile_type) return config; } +void +mq_config_deref(MqConfig *config) +{ + g_free(config->profile); + g_free(config->file_name); + g_key_file_unref(config->key_file); + g_hash_table_unref(config->types_and_cbs); + g_free(config); +} + gboolean mq_config_load(MqConfig *config) { -- cgit v0.9.1