1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed memleak when writing preferences file

This commit is contained in:
James Booth 2014-06-15 17:19:56 +01:00
parent c505f4aaba
commit e296379863

View File

@ -360,8 +360,9 @@ static void
_save_prefs(void)
{
gsize g_data_size;
char *g_prefs_data = g_key_file_to_data(prefs, &g_data_size, NULL);
gchar *g_prefs_data = g_key_file_to_data(prefs, &g_data_size, NULL);
g_file_set_contents(prefs_loc, g_prefs_data, g_data_size, NULL);
g_free(g_prefs_data);
}
static gchar *