Changeset - r15416:2eaf7e9dff0a
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-03 21:18:02
frosch@openttd.org
(svn r20069) -Fix (r20055): Make valgrind happy.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/hotkeys.cpp
Show inline comments
 
@@ -221,9 +221,7 @@ void SaveHotkeyGroup(IniGroup *group, T 
 
	for (uint i = 0; hotkey_list[i].num != -1; i++) {
 
		T *hotkey = &hotkey_list[i];
 
		IniItem *item = group->GetItem(hotkey->name, true);
 
		if (hotkey->keycodes.Length() > 0) {
 
			item->value = strdup(SaveKeycodes(hotkey));
 
		}
 
		item->SetValue(SaveKeycodes(hotkey));
 
	}
 
}
 

	
0 comments (0 inline, 0 general)