1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Fixed theme defaults memory release

This commit is contained in:
James Booth 2016-02-14 01:37:13 +00:00
parent 87e3530e22
commit 7a19ee822b

View File

@ -74,7 +74,7 @@ theme_init(const char *const theme_name)
} }
str_to_pair = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); str_to_pair = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
defaults = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); defaults = g_hash_table_new_full(g_str_hash, g_str_equal, free, free);
g_hash_table_insert(defaults, strdup("main.text"), strdup("white")); g_hash_table_insert(defaults, strdup("main.text"), strdup("white"));
g_hash_table_insert(defaults, strdup("main.text.me"), strdup("white")); g_hash_table_insert(defaults, strdup("main.text.me"), strdup("white"));