mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Fixed memleak when writing preferences file
This commit is contained in:
parent
c505f4aaba
commit
e296379863
@ -360,8 +360,9 @@ static void
|
|||||||
_save_prefs(void)
|
_save_prefs(void)
|
||||||
{
|
{
|
||||||
gsize g_data_size;
|
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_file_set_contents(prefs_loc, g_prefs_data, g_data_size, NULL);
|
||||||
|
g_free(g_prefs_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
|
Loading…
Reference in New Issue
Block a user