Patch 2134525 in (fixes a small memory leak in gtk port).

This commit is contained in:
yabause 2008-10-03 16:19:29 +00:00
parent df9178d12b
commit 785609621d
1 changed files with 5 additions and 2 deletions

View File

@ -298,6 +298,7 @@ int Write_ConfigFile()
{
int i;
GKeyFile * keyfile;
gchar *contents;
keyfile = g_key_file_new();
@ -312,8 +313,10 @@ int Write_ConfigFile()
// ini_add_section(ini, "FIRMWARE");
// ini_add_value(ini, "FIRMWARE", "FILE", FirmwareFile);
// }
g_file_set_contents(CONFIG_FILE, g_key_file_to_data(keyfile, 0, 0), -1, 0);
contents = g_key_file_to_data(keyfile, 0, 0);
g_file_set_contents(CONFIG_FILE, contents, -1, 0);
g_free (contents);
g_key_file_free(keyfile);