gtksettings: plug a leak

Make the GValue take the created GString.
This commit is contained in:
Carlos Garnacho 2011-03-07 23:05:03 +01:00
parent fe12c46531
commit 191428f596

View File

@ -3089,7 +3089,7 @@ gtk_settings_load_from_key_file (GtkSettings *settings,
g_value_init (&svalue.value, G_TYPE_GSTRING);
s_val = g_key_file_get_string (keyfile, "Settings", key, &error);
if (!error)
g_value_set_boxed (&svalue.value, g_string_new (s_val));
g_value_take_boxed (&svalue.value, g_string_new (s_val));
g_free (s_val);
break;
}